[JIRA] (JENKINS-42643) Conditional application of triggers in Declarative
Title: Message Title Tri Nguyen edited a comment on JENKINS-42643 Re: Conditional application of triggers in Declarative - I imagine the cron string could be set conditionally (only has a value on `master` branch, and an empty string if not)? In the case that you call cron with an empty string, would it have any side effect? - I tried this out, and while I can just set the cron job to an empty string, the problem is that I can't have an _expression_ evaluated for the triggers. Here's how I tried it:{code:java}pipeline { triggers {cron( env.BRANCH_NAME.equals('master') ? '* 1 * * *' : '') }} {code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179585.1489096826000.26173.1560366601033%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-42643) Conditional application of triggers in Declarative
Title: Message Title Tri Nguyen commented on JENKINS-42643 Re: Conditional application of triggers in Declarative I imagine the cron string could be set conditionally (only has a value on `master` branch, and an empty string if not)? In the case that you call cron with an empty string, would it have any side effect? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179585.1489096826000.15747.1559155561462%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-18088) Build flow execute on slave but write file on master
Title: Message Title Tri Nguyen commented on JENKINS-18088 Re: Build flow execute on slave but write file on master What is a way to get around this for InetAddress.getLocalHost()? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.