mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
testing jenkins
This commit is contained in:
parent
3a8d0021cd
commit
5946f1a618
1 changed files with 23 additions and 9 deletions
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
|
@ -6,16 +6,30 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Show the branch 1') {
|
stage('Build') {
|
||||||
GIT_BRANCH_LOCAL = sh (
|
|
||||||
script: "echo $Branch | sed -e 's|origin/||g'",
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
echo "Git branch: ${GIT_BRANCH_LOCAL}"
|
sh 'npm install'
|
||||||
sh '/bin/true'
|
sh 'npm build'
|
||||||
echo "BRANCH IS: ${env.BRANCH}"
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('If dev') {
|
||||||
|
when {
|
||||||
|
branch 'develop'
|
||||||
|
}
|
||||||
|
|
||||||
|
steps{
|
||||||
|
echo "====== its a dev!!! ======"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('If dev') {
|
||||||
|
when {
|
||||||
|
branch 'master'
|
||||||
|
}
|
||||||
|
|
||||||
|
steps{
|
||||||
|
echo "====== its a MASTER!!! ======"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue