diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 05d38b7898..15e4c81e94 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -6,6 +6,7 @@ def caseList = '' def NodeName = [hera: 'Hera-EMC', orion: 'Orion-EMC', hercules: 'Hercules-EMC', gaea: 'Gaea'] def custom_workspace = [hera: '/scratch1/NCEPDEV/global/CI', orion: '/work2/noaa/stmp/CI/ORION', hercules: '/work2/noaa/stmp/CI/HERCULES', gaea: '/gpfs/f5/epic/proj-shared/global/CI'] def repo_url = 'git@github.com:NOAA-EMC/global-workflow.git' +//def repo_url = 'git@github.com:TerrenceMcGuinness-NOAA/global-workflow.git' def STATUS = 'Passed' pipeline { @@ -32,8 +33,12 @@ pipeline { cause instanceof hudson.model.Cause.UpstreamCause } + def isSpawnedFromRemoteCause = causes.any { cause -> + cause instanceof hudson.model.Cause.RemoteCause + } + def run_nodes = [] - if (isSpawnedFromAnotherJob) { + if (isSpawnedFromAnotherJob || isSpawnedFromRemoteCause) { echo "machine being set to value passed to this spawned job" echo "passed machine: ${params.machine}" machine = params.machine