-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.7
Promoted Builds plugin ver 2.2.7
Following a migration from Jenkins 1.x to 2.2.7, the 'promoted build' plugin stopped replacing most of the variables that we rely on. The PROMOTED_* built-in variables (like $PROMOTED_USER_NAME and $PROMOTED_SVN_REVISION) still work just fine. And promotion parameters work fine, too.
But parameters of the build being promoted are no longer replaced – the parameter text remains unchanged in the tasks executed during the promotion. The build parameters are still available during the initial build, but don't seem to be available during the promotion run.
In our particular case, we're using the variables in the extended e-mail publisher during promotion, but I've also verified the same problem when using a simple shell script in the promotion.
- depends on
-
JENKINS-14169 Injected env variables not available for use in processing promotion.
-
- Resolved
-
[JENKINS-36120] Parameterized build parameters no longer available during promotion
Description |
Original:
Following a migration from Jenkins 1.x to 2.2.7, the 'promoted build' plugin stopped replacing most of the variables that we rely on. The PROMOTED_* built-in variables (like ${PROMOTED_USER_NAME} and ${PROMOTED_SVN_REVISION}) still work just fine. And promotion parameters work fine, too. But parameters of the build being promoted are no longer replaced -- the parameter text ("${SERVICE_NAME}") remains unchanged in the tasks executed during the promotion. The build parameters _are_ still available during the initial build, but don't seem to be available during the promotion run. In our particular case, we're using the variables in the extended e-mail publisher during promotion, but I've also verified the same problem when using a simple shell script in the promotion. |
New:
Following a migration from Jenkins 1.x to 2.2.7, the 'promoted build' plugin stopped replacing most of the variables that we rely on. The PROMOTED_* built-in variables (like {{${PROMOTED_USER_NAME}}} and {{${PROMOTED_SVN_REVISION}}}) still work just fine. And promotion parameters work fine, too. But parameters of the build being promoted are no longer replaced -- the parameter text ("${SERVICE_NAME}") remains unchanged in the tasks executed during the promotion. The build parameters _are_ still available during the initial build, but don't seem to be available during the promotion run. In our particular case, we're using the variables in the extended e-mail publisher during promotion, but I've also verified the same problem when using a simple shell script in the promotion. |
Description |
Original:
Following a migration from Jenkins 1.x to 2.2.7, the 'promoted build' plugin stopped replacing most of the variables that we rely on. The PROMOTED_* built-in variables (like {{${PROMOTED_USER_NAME}}} and {{${PROMOTED_SVN_REVISION}}}) still work just fine. And promotion parameters work fine, too. But parameters of the build being promoted are no longer replaced -- the parameter text ("${SERVICE_NAME}") remains unchanged in the tasks executed during the promotion. The build parameters _are_ still available during the initial build, but don't seem to be available during the promotion run. In our particular case, we're using the variables in the extended e-mail publisher during promotion, but I've also verified the same problem when using a simple shell script in the promotion. |
New:
Following a migration from Jenkins 1.x to 2.2.7, the 'promoted build' plugin stopped replacing most of the variables that we rely on. The PROMOTED_* built-in variables (like $PROMOTED_USER_NAME and $PROMOTED_SVN_REVISION) still work just fine. And promotion parameters work fine, too. But parameters of the build being promoted are no longer replaced -- the parameter text remains unchanged in the tasks executed during the promotion. The build parameters _are_ still available during the initial build, but don't seem to be available during the promotion run. In our particular case, we're using the variables in the extended e-mail publisher during promotion, but I've also verified the same problem when using a simple shell script in the promotion. |
Workflow | Original: JNJira [ 172773 ] | New: JNJira + In-Review [ 184769 ] |
Link |
New:
This issue depends on |
FWIW, adding the hudson.model.ParametersAction.keepUndefinedParameters parameter (as documented in the Jenkins Security Advisory 2016-05-11) proved to be a suitable workaround for our scenarios.