Jenkinsfile fix
This commit is contained in:
parent
6ca4c67625
commit
79b37a2ac0
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -1,5 +1,9 @@
|
|||||||
node {
|
node {
|
||||||
cleanWs()
|
cleanWs()
|
||||||
|
stage('Checkout') {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'target']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'fccada8f-3d71-4a57-951d-9aa9dbf6a7cf', url: 'ssh://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').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") {
|
||||||
stage("Initialize DB"){
|
stage("Initialize DB"){
|
||||||
@ -10,5 +14,6 @@ node {
|
|||||||
stage("Build") { sh 'ls -alh && composer install && mv .env.example .env' }
|
stage("Build") { sh 'ls -alh && composer install && mv .env.example .env' }
|
||||||
stage("Test") { sh 'vendor/bin/phpunit' }
|
stage("Test") { sh 'vendor/bin/phpunit' }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user