Jenkinsfile fix
This commit is contained in:
parent
fddbcef3b1
commit
d64fe889a8
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -1,4 +1,8 @@
|
|||||||
node {
|
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'){
|
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').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") {
|
docker.image('mysql:latest').inside("--link ${c.id}:db") {
|
||||||
@ -12,5 +16,4 @@ node {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cleanWs()
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user