[JIRA] (JENKINS-58504) P4 Plugin tries to make depot location of Jenkinsfile available regardless of SCM type

0 views
Skip to first unread message

aaling@ea.com (JIRA)

unread,
Jul 15, 2019, 7:54:02 PM7/15/19
to jenkinsc...@googlegroups.com
Aaron Ling created an issue
 
Jenkins / Bug JENKINS-58504
P4 Plugin tries to make depot location of Jenkinsfile available regardless of SCM type
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2019-07-15 23:53
Environment: Jenkins ver. 2.176.1
P4 Plugin v 1.10.2
Priority: Minor Minor
Reporter: Aaron Ling

https://github.com/jenkinsci/p4-plugin/blob/master/src/main/java/org/jenkinsci/plugins/p4/PerforceScm.java#L545

This code was added to address JENKINS-39107. We have a use-case where our jobs use lightweight checkout to load build scripts from gitlab, but the Jenkinsfiles themselves checkout from p4 to get the actual code that we build.

The added code then tries to run 'p4 where' on the Jenkinsfile, but it doesn't exist in p4. This doesn't cause any build failures, but does print the following message:

16:26:55  (p4):cmd:... p4 where E:\workspace\folder\to\Jenkinsfile.groovy 
16:26:55  p4 where E:\workspace\folder\to\Jenkinsfile.groovy
16:26:55 E:\workspace\folder\to\Jenkinsfile.groovy - file(s) not in client view.

 which causes our failure tracking to erroneously pick it up (because it's a legitimate failure at times in other cases).

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kwirth@perforce.com (JIRA)

unread,
Jul 16, 2019, 5:44:02 AM7/16/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jul 16, 2019, 5:44:03 AM7/16/19
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Jul 16, 2019, 5:45:01 AM7/16/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Bug JENKINS-58504
 
Re: P4 Plugin tries to make depot location of Jenkinsfile available regardless of SCM type

Hi Aaron Ling, Thanks for letting us know. I will try and repro this here and get back to you if we need any more information.

kwirth@perforce.com (JIRA)

unread,
Jul 16, 2019, 11:30:03 AM7/16/19
to jenkinsc...@googlegroups.com

Hi Aaron Ling - I haven't been able to reproduce this with a simple Pipeline job that syncs Jenkinsfile from GitHub then runs 'p4sync' in the Jenkinsfile.

Where are you seeing the error message? Is it in the console log or elsewhere (such as the polling log).

I'd like to see the following items. Would you be able to email them to sup...@perforce.com referencing this defect?

  1. Screenshots of Job config
  2. Directory listing of Git repo master branch
  3. Jenkinsfile
  4. Console log (or other log) showing the problem.

Thanks in advance,

Karl

 

stuartr@ea.com (JIRA)

unread,
Jul 19, 2019, 6:42:03 PM7/19/19
to jenkinsc...@googlegroups.com
Stuart Rowe started work on Bug JENKINS-58504
 
Change By: Stuart Rowe
Status: Open In Progress

stuartr@ea.com (JIRA)

unread,
Jul 19, 2019, 6:42:03 PM7/19/19
to jenkinsc...@googlegroups.com

stuartr@ea.com (JIRA)

unread,
Jul 19, 2019, 6:43:02 PM7/19/19
to jenkinsc...@googlegroups.com

pallen@perforce.com (JIRA)

unread,
Jul 23, 2019, 10:26:02 AM7/23/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages