Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Remote API in auth repo [do not merge] #2770

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]:NOAA-EMC/global-workflow.git'
//def repo_url = '[email protected]:TerrenceMcGuinness-NOAA/global-workflow.git'
def STATUS = 'Passed'

pipeline {
Expand All @@ -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
Expand Down
Loading