From 142dd1e491305edfe0efa84b07b55beb39818ed1 Mon Sep 17 00:00:00 2001 From: Alexander Noskov Date: Sat, 27 Jul 2019 17:13:33 -0500 Subject: [PATCH] Use Jenkinsfile from git instead of static file. Change-Id: I37b2e2f77810a8f84e6c57c2a0e19d957da9b64a --- tools/gate/aiab/seed.groovy | 9 ++++++--- tools/gate/airsloop/seed.groovy | 9 ++++++--- tools/gate/seaworthy/seed.groovy | 9 ++++++--- 3 files changed, 18 insertions(+), 9 deletions(-) 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) + } } } }