[JIRA] (JENKINS-62211) Justin Harringa asked me to open this: pipeline triggers not working using https://github.com/jenkinsci/config-driven-pipeline-plugin
10 views
Skip to first unread message
funeeldy@yahoo.com (JIRA)
unread,
May 7, 2020, 4:00:02 PM5/7/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I noticed a typo in the line for the cp nightly build and corrected it. Here is the new line: getWorkSpace() == 'Nightly/CP-NightlyBuilds/branches/int/int_cp' ? 'H 20 * * 4-6' : but it still failed to trigger last night.
Thanks marlene cote! If I recall correctly, some triggers require an initial pipeline run to save (even for a raw pipeline without this plugin) but that may have been fixed. I'm also curious if this may have something to do with `getWorkSpace()`. Will take a look.
marlene cote ah! Actually, I believe what is going on here is that the template may not actually be in the actual job workspace since we attempt to do a lightweight checkout (so getWorkSpace() will likely return null or something unexpected - I think that's your declared method if I understand correctly). Would you be able to utilize env.BRANCH_NAME instead of getWorkSpace() or perhaps one of the other envs{{}}?
[~funeeldy] ah! Actually, I believe what is going on here is that the template may not actually be in the actual job workspace since we attempt to do a lightweight checkout (so {{getWorkSpace()}} will likely return {{null}} or something unexpected - I think that's your declared method if I understand correctly). Would you be able to utilize {{env.BRANCH_NAME}} instead of {{getWorkSpace()}} or perhaps [one of the other envs|https://docs.cloudbees.com/docs/admin-resources/latest/automating-with-jenkinsfile/working-with-the-env]{{}}?
[~funeeldy] ah! Actually, I believe what is going on here is that the template may not actually be in the actual job workspace since we attempt to do a lightweight checkout (so {{getWorkSpace()}} will likely return {{null}} or something unexpected - I think that's your declared method if I understand correctly). Would you be able to utilize {{env.BRANCH_NAME}} instead of {{getWorkSpace()}} or perhaps [one of the other envs|https://docs.cloudbees.com/docs/admin-resources/latest/automating-with-jenkinsfile/working-with-the-env] ({{JOB_NAME}} may be another candidate depending on whether this is a MultiBranch setup or another root job type)?