-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
All machines: Windows 7 x64, JRE 7 x64
Jenkins Versions: At least from 1.501 to 1.504
ClearCase Plugin: 1.3.14
Since update from EnvInject 1.80 to 1.81 or higher (also tested with 1.82 and 1.83), the variables set by EnvInject plugin in "Prepare an environment for the run"-->"Properties Content" are not expanded when used by ClearCase VCS polling (ClearCase plugin) any longer.
I'm setting the following variables in "Prepare an environment for the run"-->"Properties Content":
PROJECT=KC001 MinorVersion=${MinorBaseVersion}${MinorMinorVersion}
Then, in the "Base ClearCase Plugin" I'm using those in the following fields:
View tag: ${COMPUTERNAME}-snap-${PROJECT}-cont View path: ${COMPUTERNAME}-snap-${PROJECT}-cont Get config spec from a file: ${CCProfiles}\RRM\Continuous\${PROJECT}\Rules Branch(es): br_${PROJECT}_REL_${MajorVersion}_${MinorBaseVersion}x
This has always been working up to now.
Since update to EnvInject 1.81 (no update to ClearCase plugin) this is what's written in the SCM Polling Log of Jenkins:
*************************** get view CSPEC *********************** [Snapshots] $ cleartool catcs -tag RRM-BUILD-S3-snap-${PROJECT}-cont cleartool: Error: View tag "RRM-BUILD-S3-snap-${PROJECT}-cont": ClearCase object not found FATAL: Base ClearCase failed. exit code=1
Hence all variables not coming from EnvInject are expanded properly but the EnvInject "Prepare Environment ..." variables are not.
This only happens in the VCS Polling activity. When manually triggering a build everything works just as expected and all variables are expanded properly.
Unclear whether it's a bug in EnvInject or ClearCase plugin (i.e. using wrong way for expanding the vars).
- is duplicated by
-
JENKINS-17377 Environment variables are not injected at Clearcase polling
-
- Closed
-
[JENKINS-16992] Since EnvInject 1.81 variables cannot be used for Base ClearCase plugin VCS polling
Description |
Original:
Since update from EnvInject 1.80 to 1.81 or higher (also tested with 1.82 and 1.83), the variables set by EnvInject plugin in "Prepare an environment for the run"-->"Properties Content" are not expanded when used by ClearCase VCS _polling_ (ClearCase plugin) any longer. I'm setting the following variables in "Prepare an environment for the run"-->"Properties Content": PROJECT=KC001 MinorVersion=${MinorBaseVersion}${MinorMinorVersion} Then, in the "Base ClearCase Plugin" I'm using those in the following fields: View tag: ${COMPUTERNAME}-snap-${PROJECT}-cont View path: ${COMPUTERNAME}-snap-${PROJECT}-cont Get config spec from a file: ${CCProfiles}\RRM\Continuous\${PROJECT}\Rules Branch(es): br_${PROJECT}_REL_${MajorVersion}_${MinorBaseVersion}x This has always been working up to now. Since update to EnvInject 1.81 (no update to ClearCase plugin) this is what's written in the SCM Polling Log of Jenkins: *************************** get view CSPEC *********************** [Snapshots] $ cleartool catcs -tag RRM-BUILD-S3-snap-${PROJECT}-cont cleartool: Error: View tag "RRM-BUILD-S3-snap-${PROJECT}-cont": ClearCase object not found FATAL: Base ClearCase failed. exit code=1 Hence all variables not coming from EnvInject are expanded properly but the EnvInject "Prepare Environment ..." variables are not. This only happens in the VCS Polling activity. When manually triggering a build everything works just as expected and all variables are expanded properly. Unclear whether it's a bug in EnvInject or ClearCase plugin (i.e. using wrong way for expanding the vars). |
New:
Since update from EnvInject 1.80 to 1.81 or higher (also tested with 1.82 and 1.83), the variables set by EnvInject plugin in "Prepare an environment for the run"-->"Properties Content" are not expanded when used by ClearCase VCS _polling_ (ClearCase plugin) any longer. I'm setting the following variables in "Prepare an environment for the run"-->"Properties Content": {noformat} PROJECT=KC001 MinorVersion=${MinorBaseVersion}${MinorMinorVersion} {noformat} Then, in the "Base ClearCase Plugin" I'm using those in the following fields: {noformat} View tag: ${COMPUTERNAME}-snap-${PROJECT}-cont View path: ${COMPUTERNAME}-snap-${PROJECT}-cont Get config spec from a file: ${CCProfiles}\RRM\Continuous\${PROJECT}\Rules Branch(es): br_${PROJECT}_REL_${MajorVersion}_${MinorBaseVersion}x {noformat} This has always been working up to now. Since update to EnvInject 1.81 (no update to ClearCase plugin) this is what's written in the SCM Polling Log of Jenkins: {noformat} *************************** get view CSPEC *********************** [Snapshots] $ cleartool catcs -tag RRM-BUILD-S3-snap-${PROJECT}-cont cleartool: Error: View tag "RRM-BUILD-S3-snap-${PROJECT}-cont": ClearCase object not found FATAL: Base ClearCase failed. exit code=1 {noformat} Hence all variables not coming from EnvInject are expanded properly but the EnvInject "Prepare Environment ..." variables are not. This only happens in the VCS Polling activity. When manually triggering a build everything works just as expected and all variables are expanded properly. Unclear whether it's a bug in EnvInject or ClearCase plugin (i.e. using wrong way for expanding the vars). |
Component/s | Original: clearcase [ 15503 ] |
Assignee | Original: Vincent Latombe [ vlatombe ] | New: Gregory Boissinot [ gbois ] |
Environment | Original: All machines: Windows 7 x64, JRE 7 x64 |
New:
All machines: Windows 7 x64, JRE 7 x64 Jenkins Versions: At least from 1.501 to 1.504 ClearCase Plugin: 1.3.14 |
Link |
New:
This issue is duplicated by |
Workflow | Original: JNJira [ 147822 ] | New: JNJira + In-Review [ 177013 ] |