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
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
|
@ -6,16 +6,30 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
stage('Show the branch 1') {
|
||||
GIT_BRANCH_LOCAL = sh (
|
||||
script: "echo $Branch | sed -e 's|origin/||g'",
|
||||
returnStdout: true
|
||||
).trim()
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'npm install'
|
||||
sh 'npm build'
|
||||
}
|
||||
}
|
||||
|
||||
stage('If dev') {
|
||||
when {
|
||||
branch 'develop'
|
||||
}
|
||||
|
||||
steps{
|
||||
echo "Git branch: ${GIT_BRANCH_LOCAL}"
|
||||
sh '/bin/true'
|
||||
echo "BRANCH IS: ${env.BRANCH}"
|
||||
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