Andrew West commented on Improvement JENKINS-15515

Sorry for that, maybe this example might make things a little clearer.

Given the depot layout

//depot/project1/test.txt
//depot/project2/test.txt

Which contains the history

Change 1 by andrew@desktop on 2012/10/14 11:04:05
Added test.txt to Project1
Affected files ...
... //depot/project1/test.txt#1 add

Change 2 by andrew@desktop on 2012/10/14 11:07:12
Added test.txt to project2
Affected files ...
... //depot/project2/test.txt#1 add

If I'd set up a project in jenkins using the view map

//depot/project1/... //workspace/...

Which is simply a job that calls;

echo "P4_CHANGELIST = $P4_CHANGELIST"

Building this job after changeset 1 is submitted (before changeset 2 is submitted) I get the expected output

P4_CHANGELIST = 1

Then if I submit changeset 2 and build the project again I get the response

P4_CHANGELIST = 2

Am I misconstruing what P4_CHANGELIST represents? I'd expect it to be the changeset id of the last changeset associated with a project, but under all the projects I've used it with it seems to be the last sync'd changeset regardless of the workspace.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to