Added frontend building to jenkinsfile
This commit is contained in:
parent
28cdb557dd
commit
e2bba0f0b4
5
.gitignore
vendored
5
.gitignore
vendored
@ -26,7 +26,4 @@ Homestead.json
|
|||||||
|
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
.idea
|
.idea
|
||||||
<<<<<<< HEAD
|
.nuxt
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> dev
|
|
||||||
|
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -3,6 +3,7 @@ node {
|
|||||||
stage('Checkout') {
|
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']]])
|
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']]])
|
||||||
}
|
}
|
||||||
|
stage('API'){
|
||||||
dir('target/api'){
|
dir('target/api'){
|
||||||
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") {
|
||||||
@ -17,4 +18,12 @@ node {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
stage('Frontend'){
|
||||||
|
dir('target/front'){
|
||||||
|
docker.image('circleci/node:10'){
|
||||||
|
stage("Build") { sh 'npm install && npm run build' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user