RE: Regular expression for conditional build step?

2015-12-04 Thread David Aldrich
Hi Matthew Thanks very much. I didn’t notice that I was using the wrong case. ${ENV,var="WORKSPACE"} works. Best regards David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it

RE: Regular expression for conditional build step?

2015-12-04 Thread Matthew.Webber
5 09:07 To: jenkinsci-users@googlegroups.com Subject: RE: Regular expression for conditional build step? Hi I’m still struggling with this. My workspace is: C:\Jenkins\workspace\VS2010_all_branches_and_trunk\trunk My condition for a build step is: Expression: .*trunk.* Label: ${ENV,VAR=WORKSPAC

RE: Regular expression for conditional build step?

2015-12-04 Thread David Aldrich
tly? Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] Sent: 03 December 2015 14:04 To: jenkinsci-users@googlegroups.com Subject: RE: Regular expression for conditional build step? Have tried a bit harder. WORKSPACE is: C:\Jenkins\worksp

RE: Regular expression for conditional build step?

2015-12-03 Thread David Aldrich
batch command] I want the step to execute. What am I doing wrong? Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 03 December 2015 12:28 To: jenkinsci-users@googlegroups.com Subject: Regular expression for

Regular expression for conditional build step?

2015-12-03 Thread David Aldrich
Hi I am using the multi-branch plugin to run a job on multiple branches and the trunk. I want to add a conditional build step that is only executed on the trunk. So I'm thinking of adding a conditional build step that uses a regular expression to check whether $WORKSPACE contains 'trunk'. I