Will it build??
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -15,8 +15,10 @@ pipeline {
|
|||||||
|
|
||||||
if (dir(subfolderPath).exists()) {
|
if (dir(subfolderPath).exists()) {
|
||||||
try {
|
try {
|
||||||
def subfolderJob = load "${subfolderPath}/.jenkins/Jenkinsfile.snapshot"
|
dir("${WORKSPACE}/${subfolderName}") {
|
||||||
subfolderJob()
|
def subfolderJob = load ".jenkins/Jenkinsfile.snapshot"
|
||||||
|
subfolderJob()
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
echo "Error running pipeline for ${subfolderPath}: ${e.message}"
|
echo "Error running pipeline for ${subfolderPath}: ${e.message}"
|
||||||
hasFailure = true
|
hasFailure = true
|
||||||
|
Reference in New Issue
Block a user