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 {
|
||||
agent any
|
||||
|
||||
|
@ -21,6 +23,7 @@ pipeline {
|
|||
script {
|
||||
if("${WWW}" == "/var/www/on-deploy/map/staging/frontend") {
|
||||
currentBuild.result = 'FAILED'
|
||||
failed = true
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +33,9 @@ pipeline {
|
|||
stage('Deploy: dev') {
|
||||
when {
|
||||
branch 'develop'
|
||||
expression {
|
||||
!failed
|
||||
}
|
||||
}
|
||||
|
||||
steps{
|
||||
|
@ -40,6 +46,9 @@ pipeline {
|
|||
stage('Deploy: master') {
|
||||
when {
|
||||
branch 'master'
|
||||
expression {
|
||||
!failed
|
||||
}
|
||||
}
|
||||
|
||||
steps{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue