Jenkinsfile fix

This commit is contained in:
Artur Nowakowski 2019-11-30 18:33:05 +01:00
parent fddbcef3b1
commit d64fe889a8
1 changed files with 4 additions and 1 deletions

5
Jenkinsfile vendored
View File

@ -1,4 +1,8 @@
node {
cleanWs()
stage('Checkout') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], browser: [$class: 'GogsGit', repoUrl: 'https://git.wmi.amu.edu.pl/s416138/ClearBowl.git'], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'target']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'jenkins_git.wmi.amu.edu.pl', url: 'git@git.wmi.amu.edu.pl:s416138/ClearBowl.git']]])
}
dir('target'){
docker.image('mysql:latest').withRun('-e "MYSQL_ROOT_PASSWORD=8fcXUlCgC6JCqpoWX64" -e "MYSQL_DATABASE=clearbowl" -e "MYSQL_USER=api" -e "MYSQL_PASSWORD=R23qarINlcALOk2nDg6LbJelaqk"') { c ->
docker.image('mysql:latest').inside("--link ${c.id}:db") {
@ -12,5 +16,4 @@ node {
}
}
}
cleanWs()
}