[JIRA] (JENKINS-57527) Unable to update Review due to bad Swarm URL

2 views
Skip to first unread message

pallen@perforce.com (JIRA)

unread,
May 17, 2019, 10:08:01 AM5/17/19
to jenkinsc...@googlegroups.com
Paul Allen created an issue
 
Jenkins / Bug JENKINS-57527
Unable to update Review due to bad Swarm URL
Issue Type: Bug Bug
Assignee: Paul Allen
Components: p4-plugin
Created: 2019-05-17 14:07
Priority: Minor Minor
Reporter: Paul Allen

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages