Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58504

P4 Plugin tries to make depot location of Jenkinsfile available regardless of SCM type

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • p4-plugin
    • Jenkins ver. 2.176.1
      P4 Plugin v 1.10.2

      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).

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

          Aaron Ling created issue -
          Karl Wirth made changes -
          Labels New: P4_SUPPORT
          Karl Wirth made changes -
          Assignee New: Karl Wirth [ p4karl ]
          Stuart Rowe made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Stuart Rowe made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Stuart Rowe made changes -
          Assignee Original: Karl Wirth [ p4karl ] New: Paul Allen [ p4paul ]
          Paul Allen made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]

            p4paul Paul Allen
            aaronling Aaron Ling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: