Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

abortTriggeredJob parameter #30

Open
bgrosvald opened this issue Mar 6, 2022 · 1 comment
Open

abortTriggeredJob parameter #30

bgrosvald opened this issue Mar 6, 2022 · 1 comment

Comments

@bgrosvald
Copy link

Hello,
I am using "abortTriggeredJob: true" when triggering remote job
but when parent job aborted the downstream job (the triggered Job) keep running
Expected result: the downstream job should killed/aborted

please advice
Thanks,
Baruch

@bgrosvald bgrosvald reopened this Mar 6, 2022
@bgrosvald
Copy link
Author

code example:

handle = triggerRemoteJob(
abortTriggeredJob: true,
remoteJenkinsName: 'RemoteDevopsJenkins',
job: 'SmartCloud-env',
blockBuildUntilComplete: true,
shouldNotFailBuild: true,
pollInterval: 30,
parameters:
"""EnvName=${envName}
ExecuterUsername=${executerName}
Tags=${tags}
ADDITIONAL_PARAMS=${additional_params}
XMLGitRepositoryURL=${XMLGitRepositoryURL}
XMLGitBranch=${XMLGitBranch}
XMLGitPath=${XMLGitPath}
ExistingTenantName=${existing_tenant_name}"""
)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant