mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
test jenkins
This commit is contained in:
parent
8a80569cca
commit
4cffb64bc5
1 changed files with 9 additions and 0 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
def failed = false
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
@ -21,6 +23,7 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
if("${WWW}" == "/var/www/on-deploy/map/staging/frontend") {
|
if("${WWW}" == "/var/www/on-deploy/map/staging/frontend") {
|
||||||
currentBuild.result = 'FAILED'
|
currentBuild.result = 'FAILED'
|
||||||
|
failed = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,6 +33,9 @@ pipeline {
|
||||||
stage('Deploy: dev') {
|
stage('Deploy: dev') {
|
||||||
when {
|
when {
|
||||||
branch 'develop'
|
branch 'develop'
|
||||||
|
expression {
|
||||||
|
!failed
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
steps{
|
steps{
|
||||||
|
@ -40,6 +46,9 @@ pipeline {
|
||||||
stage('Deploy: master') {
|
stage('Deploy: master') {
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
|
expression {
|
||||||
|
!failed
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
steps{
|
steps{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue