forked from stefanprodan/dockprom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
23 lines (21 loc) · 851 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
node('master') {
ws('/disk/docker/dockprom') {
stage('Git checkout') {
ansiColor('xterm') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: 'master']], submoduleCfg: [], userRemoteConfigs: [[url: '[email protected]:Tibi02/dockprom.git']]])
}
}
stage('Compose pull') {
ansiColor('xterm') {
sh('docker-compose pull')
}
}
stage('Compose up') {
ansiColor('xterm') {
withCredentials([usernamePassword(credentialsId: 'grafana-user', passwordVariable: 'ADMIN_PASSWORD', usernameVariable: 'ADMIN_USER')]) {
sh('COMPOSE_PROJECT_NAME=dockprom docker-compose up -d --force-recreate')
}
}
}
}
}