If the pin to label field is set to a macro referencing a build parameter ( e.g. ${SOMEVAR} ), then syncing fails when that parameter value is left empty.
The expected behavior is that the workspace will be synced to head as if the pin to label field was left empty.
[JENKINS-29943] Pin to Label populate option doesn't support empty parameter values
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Description | New: If the pin to label field is set to a macro referencing a build parameter (e.g. ${SOMEVAR}), then syncing fails when that parameter value is left empty. |
Description | Original: If the pin to label field is set to a macro referencing a build parameter (e.g. ${SOMEVAR}), then syncing fails when that parameter value is left empty. | New: If the pin to label field is set to a macro referencing a build parameter ( e.g. $\{SOMEVAR\} ), then syncing fails when that parameter value is left empty. |
Description | Original: If the pin to label field is set to a macro referencing a build parameter ( e.g. $\{SOMEVAR\} ), then syncing fails when that parameter value is left empty. |
New:
If the pin to label field is set to a macro referencing a build parameter ( e.g. $\{SOMEVAR\} ), then syncing fails when that parameter value is left empty. The expected behavior is that the workspace will be synced to head as if the pin to label field was left empty. |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Assignee | Original: Stuart Rowe [ stuartrowe ] | New: Paul Allen [ p4paul ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Code changed in jenkins
User: stuartrowe
Path:
src/main/java/org/jenkinsci/plugins/p4/tasks/CheckoutTask.java
http://jenkins-ci.org/commit/p4-plugin/9dba27bcfa43f95879c33bf175f725c5e2881188
Log:
JENKINS-29943: Check for empty param valuesAdding an isEmpty() check after expanding the value of the
populateLabel, since a parameter value may be empty.