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=WORKSPACE}

So the build step should execute but it doesn’t:

C:\Jenkins\workspace\VS2010_all_branches_and_trunk\trunk\MSVC\Zodiac2010_Release>exit
 0
Regular expression run condition: Expression=[.*trunk.*], 
Label=[${ENV,VAR=WORKSPACE}]
Run condition [Regular expression match] preventing perform for step [Execute 
Windows batch command]

Why is this?  Am I referencing the WORKSPACE variable incorrectly?

Best regards

David

From: [email protected] [mailto:[email protected]]
Sent: 03 December 2015 14:04
To: [email protected]
Subject: RE: Regular expression for conditional build step?

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]> 
[mailto:[email protected]]
Sent: 03 December 2015 12:28
To: [email protected]<mailto:[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

-- 
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/41302A7145AC054FA7A96CFD03835A0A0BA24F55%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to