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

Unable to update Review due to bad Swarm URL

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: p4-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Hi Paul

      [Pipeline] echo
      Review: 12229, review type: SHELVED
      [Pipeline] p4approve
      ... p4 property -nP4.Swarm.URL -l +
      ... p4 info +
      ... p4 login -s +
      [Pipeline] echoException occurred
      [Pipeline] echo
      java.io.IOException: Unable to update Review.
      [Pipeline] } 

       
      In the above, the Swarm URL was incorrect. It would be nice to see something more than “Exception occurred”.

                      script {
                          try {
                              echo "Review type: ${P4_REVIEW_TYPE}"
                              if ("${P4_REVIEW_TYPE}" == "SHELVED") {
                                  echo "Review: ${P4_REVIEW}, review type: ${P4_REVIEW_TYPE}"
                                  p4approve credential: "${env.p4_credential}",
                                      review: '${P4_REVIEW}', status: 'COMMIT'
                                  // Now set the review state back to 'needs review'
                                  p4approve credential: "${env.p4_credential}",
                                      review: '${P4_REVIEW}', status: 'REVIEW'
                              } else {
                                  echo "Skipping Swarm approval as changelist already submitted"
                              }
                          } catch(Exception e) {
                              // Do something with the exception
                              echo "Exception occurred"
                              echo "${e.toString()}"
                              currentBuild.result = 'SUCCESS'
                          }
                      }
      

      Suggestions to extract more info?

      This was the value of the property:

      1. curl http://webserver.swarm2

      curl: (6) Could not resolve host: webserver.swarm2

      Robert

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              p4paul Paul Allen
              Reporter:
              p4paul Paul Allen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: