Jenkins oh jenkins. Why does thou hate me so'th
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -10,10 +10,10 @@ pipeline {
|
|||||||
def subfolderNames = ["1.18.2", "1.19.2", "1.19.3", "1.20", "1.20.2", "1.20.4"]
|
def subfolderNames = ["1.18.2", "1.19.2", "1.19.3", "1.20", "1.20.2", "1.20.4"]
|
||||||
boolean hasFailure = false
|
boolean hasFailure = false
|
||||||
|
|
||||||
for (def subfolderName in subfolderNames) {
|
for (def subfolderName : subfolderNames) {
|
||||||
def subfolderPath = "${WORKSPACE}/${subfolderName}"
|
def subfolderPath = "${WORKSPACE}/${subfolderName}/.jenkins/Jenkinsfile.snapshot"
|
||||||
|
|
||||||
if (dir(subfolderPath).exists()) {
|
if (fileExists(subfolderPath)) {
|
||||||
try {
|
try {
|
||||||
dir("${WORKSPACE}/${subfolderName}") {
|
dir("${WORKSPACE}/${subfolderName}") {
|
||||||
def subfolderJob = load ".jenkins/Jenkinsfile.snapshot"
|
def subfolderJob = load ".jenkins/Jenkinsfile.snapshot"
|
||||||
@@ -24,7 +24,7 @@ pipeline {
|
|||||||
hasFailure = true
|
hasFailure = true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "Skipping non-existent folder: ${subfolderPath}"
|
echo "Skipping non-existent Jenkinsfile: ${subfolderPath}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user