mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
36 lines
No EOL
710 B
Groovy
36 lines
No EOL
710 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
gitParameter branchFilter: '.*/(.*)', defaultValue: 'hoogabooga', name: 'BRANCH', type: 'PT_BRANCH'
|
|
}
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh 'npm install'
|
|
sh 'npm build'
|
|
}
|
|
}
|
|
|
|
stage('If dev') {
|
|
when {
|
|
branch 'develop'
|
|
}
|
|
|
|
steps{
|
|
echo "====== its a dev!!! ======"
|
|
}
|
|
}
|
|
|
|
stage('If master') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
|
|
steps{
|
|
echo "====== its a MASTER!!! ======"
|
|
}
|
|
}
|
|
}
|
|
} |