Have tried a bit harder.
WORKSPACE is:
C:\Jenkins\workspace\VS2010_all_branches_and_trunk\trunk
Jenkins replies:
Regular expression run condition: Expression=[.*\\trunk.*],
Label=[${ENV,VAR=WORKSPACE}]
Run condition [Regular expression match] preventing perform for step [Execute
Windows batch command]
I want the step to execute. What am I doing wrong?
Best regards
David
From: [email protected]
[mailto:[email protected]] On Behalf Of David Aldrich
Sent: 03 December 2015 12:28
To: [email protected]
Subject: Regular expression for conditional build step?
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 guess the regular
expression would be something like:
Expression: ${ENV,var="WORKSPACE"}
Label: trunk
But that isn’t right. What would I specify please?
Best regards
David
Click
here<https://www.mailcontrol.com/sr/Z0MzAdOw2DrGX2PQPOmvUrwgXREt4LZXdhrKwP!oCktz1l8Y6feU2kMUTrQnoVfOqLXYv05om4BkxH4nYzTQYQ==>
to report this email as spam.
--
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, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BA2398D%40EX10MBX02.EU.NEC.COM<https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BA2398D%40EX10MBX02.EU.NEC.COM?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BA23A2D%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.