mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-04-03 16:51:26 +00:00
fix: remplace les conditions de build
This commit is contained in:
@ -20,18 +20,26 @@ pipeline {
|
|||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
stage("Clean Workspace") {
|
stage("Check Tag") {
|
||||||
|
when {
|
||||||
|
not {
|
||||||
|
buildingTag()
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
deleteDir()
|
script {
|
||||||
|
currentBuild.result = 'NOT_BUILT'
|
||||||
|
error("⚠️ Pipeline uniquement déclenchée sur les tags. Aucun tag détecté.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("Only Tags Build") {
|
stage("Clean Workspace") {
|
||||||
when {
|
when {
|
||||||
buildingTag()
|
buildingTag()
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo "Build déclenché par tag : ${TAG_NAME}"
|
deleteDir()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user