diff --git a/tools/gate/aiab/seed.groovy b/tools/gate/aiab/seed.groovy index e343e88b5..9e056a1a8 100644 --- a/tools/gate/aiab/seed.groovy +++ b/tools/gate/aiab/seed.groovy @@ -43,9 +43,12 @@ pipelineJob("treasuremap-aiab") { } definition { - cps { - script(readFileFromWorkspace("${JOB_BASE}/Jenkinsfile")) - sandbox(false) + cpsScm { + scm { + git('https://review.opendev.org/airship/treasuremap') + scriptPath('tools/gate/aiab/Jenkinsfile') + lightweight(true) + } } } } diff --git a/tools/gate/airsloop/seed.groovy b/tools/gate/airsloop/seed.groovy index f31a282d7..37ec9a26a 100644 --- a/tools/gate/airsloop/seed.groovy +++ b/tools/gate/airsloop/seed.groovy @@ -80,9 +80,12 @@ pipelineJob('airsloop') { } definition { - cps { - script(readFileFromWorkspace("tools/gate/airsloop/Jenkinsfile")) - sandbox(false) + cpsScm { + scm { + git('https://review.opendev.org/airship/treasuremap') + scriptPath('tools/gate/airsloop/Jenkinsfile') + lightweight(true) + } } } } diff --git a/tools/gate/seaworthy/seed.groovy b/tools/gate/seaworthy/seed.groovy index ff69b3bb1..ac262e397 100644 --- a/tools/gate/seaworthy/seed.groovy +++ b/tools/gate/seaworthy/seed.groovy @@ -33,9 +33,12 @@ pipelineJob('Seaworthy') { } definition { - cps { - script(readFileFromWorkspace("tools/gate/seaworthy/Jenkinsfile")) - sandbox(false) + cpsScm { + scm { + git('https://review.opendev.org/airship/treasuremap') + scriptPath('tools/gate/seaworthy/Jenkinsfile') + lightweight(true) + } } } }