[JIRA] (JENKINS-49483) When using Streams, custom view definition seems to be ignored

111 views
Skip to first unread message

htwiz2002@gmail.com (JIRA)

unread,
Feb 9, 2018, 5:55:02 PM2/9/18
to jenkinsc...@googlegroups.com
Harry Takata created an issue
 
Jenkins / Bug JENKINS-49483
When using Streams, custom view definition seems to be ignored
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: image-2018-02-09-15-50-47-532.png, image-2018-02-09-15-51-33-153.png
Components: p4-plugin
Created: 2018-02-09 22:54
Environment: p4-plugin 1.8.5
Jenkins 2.105
Labels: plugin scm
Priority: Major Major
Reporter: Harry Takata

I have a Perforce stream called //UE4/main and in a subdirectory I have the SteamCMD utility.

To use the steamcmd utility I defined a job that maps that specific directory to the workspace only, like so:

Unfortunately, when this job was ran, the resulting workspace was like so:

Which resulted in an unnecessary download of about 13 Gb of content (when I only needed 2 Mb).

I don't think I specified the view incorrectly (essentially, it should have only synced Tools/BuildScripts/Uploaders/Steam/ to the workspace folder Steam).

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

htwiz2002@gmail.com (JIRA)

unread,
Feb 9, 2018, 5:59:02 PM2/9/18
to jenkinsc...@googlegroups.com
Harry Takata updated an issue
Change By: Harry Takata
I have a Perforce stream called //UE4/main and in a subdirectory I have the SteamCMD utility.

To use the steamcmd utility I defined a job that maps that specific directory to the workspace only, like so:

!image-2018-02-09-15-50-47-532.png!


Unfortunately, when this job was ran, the resulting workspace was like so:

!image-2018-02-09-15-51-33-153.png!

Which resulted in an unnecessary download of about
- 13 - 80 Gb of content (when I only needed 2 Mb).


I don't think I specified the view incorrectly (essentially, it should have only synced Tools/BuildScripts/Uploaders/Steam/ to the workspace folder Steam).

pallen@perforce.com (JIRA)

unread,
Feb 22, 2018, 9:38:02 AM2/22/18
to jenkinsc...@googlegroups.com

ben@2nproductions.com (JIRA)

unread,
Apr 24, 2018, 7:35:02 PM4/24/18
to jenkinsc...@googlegroups.com
Ben L commented on Bug JENKINS-49483
 
Re: When using Streams, custom view definition seems to be ignored

I have this same issue. This seems pretty limiting. The problem here is that submit will fail if you don't define the stream due to this issue:

 

https://stackoverflow.com/questions/12731649/perforce-error-cannot-submit-from-non-stream-client

ben@2nproductions.com (JIRA)

unread,
Apr 24, 2018, 7:36:01 PM4/24/18
to jenkinsc...@googlegroups.com
Ben L edited a comment on Bug JENKINS-49483
I have this same issue. This seems pretty limiting. The problem here is that submit will fail if you don't define the stream due to this issue:

 

ben@2nproductions.com (JIRA)

unread,
Apr 24, 2018, 7:43:02 PM4/24/18
to jenkinsc...@googlegroups.com
Ben L updated an issue
 
Change By: Ben L
Comment:
I have this same issue. This seems pretty limiting. The problem here is that submit will fail if you don't define the stream due to this issue:

 

[https://stackoverflow.com/questions/12731649/perforce-error-cannot-submit-from-non-stream-client]

 

I'm doing this in a Jenkins pipeline

delikat.mateusz@gmail.com (JIRA)

unread,
May 31, 2018, 6:31:03 AM5/31/18
to jenkinsc...@googlegroups.com
Mateusz Delikat commented on Bug JENKINS-49483
 
Re: When using Streams, custom view definition seems to be ignored

We have this issue here too.

It seems as if view mappings are being forced onto workspace view, but since it's specified as a stream workspace those can't be applied onto workspace specification.

In old perforce plugin there were two "view maps" - one of those (when checked) could work as an overlay for jenkins to know what to sync and how to populate changeLogSet without interfering with workspace stream specification. This was ideal for situations like the one mentioned in this report.

 

delikat.mateusz@gmail.com (JIRA)

unread,
May 31, 2018, 6:32:01 AM5/31/18
to jenkinsc...@googlegroups.com
Mateusz Delikat edited a comment on Bug JENKINS-49483
We have this issue here too.

It seems as if view mappings are being forced onto workspace view, but since it's specified as a stream workspace those can't be applied onto workspace its specification.


In old perforce plugin there were two "view maps" - one of those (when checked) could work as an overlay for jenkins to know what to sync and how to populate changeLogSet without interfering with workspace stream specification. This was ideal for situations like the one mentioned in this report.

 

delikat.mateusz@gmail.com (JIRA)

unread,
May 31, 2018, 6:43:02 AM5/31/18
to jenkinsc...@googlegroups.com
Mateusz Delikat edited a comment on Bug JENKINS-49483
We have this issue here too.

It seems as if view mappings are being forced onto workspace view, but since it's specified as a stream workspace those can't be applied onto its specification.


In old perforce plugin there were two "view maps" - one of those (when checked) could work as an overlay for jenkins to know what to sync and how to populate changeLogSet without interfering with workspace stream specification. This was ideal for situations like the one mentioned in this report.

 

delikat.mateusz@gmail.com (JIRA)

unread,
Sep 13, 2018, 10:04:02 AM9/13/18
to jenkinsc...@googlegroups.com
Mateusz Delikat assigned an issue to Paul Allen
 
Change By: Mateusz Delikat
Assignee: Paul Allen
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pallen@perforce.com (JIRA)

unread,
Sep 24, 2018, 8:43:02 AM9/24/18
to jenkinsc...@googlegroups.com
Paul Allen commented on Bug JENKINS-49483
 
Re: When using Streams, custom view definition seems to be ignored

I have a possible workaround using the 'Preview Check Only' option (sync -n ...), but for the moment it will require a 'Pipeline' build.

You would need to create a Jenkinsfile and checkout the code using a Streams workspace with the 'Preview Check Only' option; then use a P4 Groovy step to sync just the files you need from the same workspace definition.

If you think this will work, but you would prefer to use the older FreeStyle Jenkins job, I would need to add a sync step or you would have to call out to a script.

delikat.mateusz@gmail.com (JIRA)

unread,
Oct 15, 2018, 7:47:02 AM10/15/18
to jenkinsc...@googlegroups.com

Is P4Groovy step going to update changeset for the build when used that way?

pallen@perforce.com (JIRA)

unread,
Oct 15, 2018, 10:50:03 AM10/15/18
to jenkinsc...@googlegroups.com

Unfortunately no; P4Groovy runs outside of Jenkins and will not update the built changes list. However the Preview Check Only option should record the changes and set the sync ID; this is used to report the changes in the build summary and record the SyncID used by polling to figure out if a build is required.

delikat.mateusz@gmail.com (JIRA)

unread,
Nov 30, 2018, 5:55:02 AM11/30/18
to jenkinsc...@googlegroups.com
Mateusz Delikat edited a comment on Bug JENKINS-49483
[~p4paul]: Would it work, if I'd create a label my_label with revision field set as @X, where X is a changelist number submitted to stream {my_stream} with a view:

* //{my_stream}/...
* -//{my_stream}/{some_path}/...

And then setting pin in p4sync to "@my_label,@my_label"?

With "p4 sync //{my_stream}/...@{my_label}" it all files excluded from label are deleted, but with "p4 sync //{my_stream}/...@{my_label},@{my_label}" it looks like those excluded are left behind and not sync'ed, which basically is ideal. Does this construct work with p4sync pin feature?

delikat.mateusz@gmail.com (JIRA)

unread,
Nov 30, 2018, 5:55:02 AM11/30/18
to jenkinsc...@googlegroups.com

Paul Allen: Would it work, if I'd create a label my_label with revision field set as @X, where X is a changelist number submitted to stream

{my_stream} with a view:

//{my_stream}

/...
-//

{my_stream}/{some_path}/...

And then setting pin in p4sync to "@my_label,@my_label"?

With "p4 sync //{my_stream}

/...@

{my_label}" it all files excluded from label are deleted, but with "p4 sync //{my_stream}/...@{my_label}

,@

{my_label}

" it looks like those excluded are left behind and not sync'ed, which basically is ideal. Does this construct work with p4sync pin feature?

delikat.mateusz@gmail.com (JIRA)

unread,
Nov 30, 2018, 5:56:01 AM11/30/18
to jenkinsc...@googlegroups.com
Mateusz Delikat edited a comment on Bug JENKINS-49483
[~p4paul]: Would it work, if I'd create a label my_label with revision field set as @X, where X is a changelist number submitted to stream

{my_stream} with a view:

*

// \ {my_stream}/...
* -// \ {my_stream}/ \ {some_path}/...


And then setting pin in p4sync to "@my_label,@my_label"?


With "p4 sync // \ {my_stream}/...@ \ {my_label}" it all files excluded from label are deleted, but with "p4 sync // \ {my_stream}/...@ \ {my_label},@ \ {my_label}" it looks like those excluded are left behind and not sync'ed, which basically is ideal. Does this construct work with p4sync pin feature?

delikat.mateusz@gmail.com (JIRA)

unread,
Nov 30, 2018, 5:59:03 AM11/30/18
to jenkinsc...@googlegroups.com
Mateusz Delikat edited a comment on Bug JENKINS-49483
[~p4paul]: Would it work, if I'd create a label my_label with revision field set as @X, where X is a changelist number submitted to stream \{my_stream}

with a view:

//\{my_stream}/...

-//\{my_stream}/\{some_path}/...

And then setting pin in p4sync to "@my_label,@my_label"?

With "p4 sync //\{my_stream}/...@\{my_label}" it all files excluded from label are deleted, but with "p4 sync //\{my_stream}/...@\{my_label},@\{my_label}" it looks like those excluded are left behind and not sync'ed, which basically is ideal. Does this construct work with p4sync pin feature?

delikat.mateusz@gmail.com (JIRA)

unread,
Nov 30, 2018, 5:59:03 AM11/30/18
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages