Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: p4-plugin
-
Labels:None
-
Environment:jenkins 2.7.2 LTS
p4-plgin 1.3.8
jdk 1.8 (sun)
OS : redhat 7.2
-
Similar Issues:
Description
I'm using p4 plugin for several months in freestyle jobs, and I'm moving to 'pipelines' implementation (workflow if you like)
According to this documentation, there are some known limitations :
https://github.com/jenkinsci/p4-plugin/blob/master/SETUP.md
especially :
No access to Environment ${VAR} variables
On the other hand, one line below is written :
Exposed Variables :
- P4_CHANGELIST - current changelist (valid for this to be blank when there are no changes).
Within my pipelines, what I see is that 'P4_CHANGELIST' is not available after a call to p4sync.
Is it expected ?
If so, how do I retrieve the changelist at which the sync is done ? (in order to propagate it to further steps and stages in the pipeline)
Attachments
Issue Links
- depends on
-
JENKINS-26100 SCM steps should return revision state
-
- Resolved
-
- is blocked by
-
JENKINS-38976 P4_TICKET not exposed for .Groovy scripts
-
- Closed
-
- is related to
-
JENKINS-40885 Environment variables are not exposed in pipeline script
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Flagged | Impediment [ 10003 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Karl Wirth [ p4karl ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Link |
This issue is blocked by |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Description |
I'm using p4 plugin for several months in freestyle jobs, and I'm moving to 'pipelines' implementation (workflow if you like) According to this documentation, there are some known limitations : https://github.com/jenkinsci/pipeline-plugin/blob/master/README.md especially : {quote}No access to Environment $\{VAR\} variables{quote} On the other hand, one line below is written : Exposed Variables : - *P4_CHANGELIST* - current changelist (valid for this to be blank when there are no changes). Within my pipelines, what I see is that 'P4_CHANGELIST' is not available after a call to p4sync. Is it expected ? If so, how do I retrieve the changelist at which the sync is done ? (in order to propagate it to further steps and stages in the pipeline) |
I'm using p4 plugin for several months in freestyle jobs, and I'm moving to 'pipelines' implementation (workflow if you like) According to this documentation, there are some known limitations : https://github.com/jenkinsci/p4-plugin/blob/master/SETUP.md especially : {quote}No access to Environment $\{VAR\} variables{quote} On the other hand, one line below is written : Exposed Variables : - *P4_CHANGELIST* - current changelist (valid for this to be blank when there are no changes). Within my pipelines, what I see is that 'P4_CHANGELIST' is not available after a call to p4sync. Is it expected ? If so, how do I retrieve the changelist at which the sync is done ? (in order to propagate it to further steps and stages in the pipeline) |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Link |
This issue is related to |
Link |
This issue depends on |
Resolution | Fixed [ 1 ] | |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Additionally : setting the 'change' variable in a pipeline seem to have no effect either.
I've tried to set the 'pin' value to a changelist, and apparently it works but I'm not sure it's a recommended use.
So to be more precise on the needs here :