test
This commit is contained in:
parent
6e3f1786cf
commit
2b3bee5809
1 changed files with 6 additions and 0 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
|
@ -22,6 +22,12 @@ pipeline {
|
||||||
|
|
||||||
sh 'git submodule update --init --recursive'
|
sh 'git submodule update --init --recursive'
|
||||||
|
|
||||||
|
if (env.BRANCH_NAME !== 'main') {
|
||||||
|
echo "[!] Not on main branch. Stopping pipeline."
|
||||||
|
currentBuild.result = 'SUCCESS'
|
||||||
|
error("Stopping pipeline: not on main branch.")
|
||||||
|
}
|
||||||
|
|
||||||
def tagName = sh(
|
def tagName = sh(
|
||||||
script: "git describe --tags --exact-match 2>/dev/null || echo 'no-tag'",
|
script: "git describe --tags --exact-match 2>/dev/null || echo 'no-tag'",
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue