[JIRA] (JENKINS-58745) P4Groovy p4.run() does not locate credentials in folder
Title: Message Title Paul Allen updated JENKINS-58745 Released in 1.10.4 Jenkins / JENKINS-58745 P4Groovy p4.run() does not locate credentials in folder Change By: Paul Allen Status: Fixed but Unreleased Closed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201048.156461302.9753.1570028042300%40Atlassian.JIRA.
[JIRA] (JENKINS-58745) P4Groovy p4.run() does not locate credentials in folder
Title: Message Title Paul Allen started work on JENKINS-58745 Change By: Paul Allen Status: Open In Progress Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201048.156461302.7749.1569841500757%40Atlassian.JIRA.
[JIRA] (JENKINS-58745) P4Groovy p4.run() does not locate credentials in folder
Title: Message Title Paul Allen updated JENKINS-58745 Ready for release. Jenkins / JENKINS-58745 P4Groovy p4.run() does not locate credentials in folder Change By: Paul Allen Status: In Progress Fixed but Unreleased Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit
[JIRA] (JENKINS-58745) P4Groovy p4.run() does not locate credentials in folder
Title: Message Title Joel Brown updated an issue Jenkins / JENKINS-58745 P4Groovy p4.run() does not locate credentials in folder Change By: Joel Brown Issue Type: Improvement Bug Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201048.156461302.5154.1566181080292%40Atlassian.JIRA.
[JIRA] (JENKINS-58745) P4Groovy p4.run() does not locate credentials in folder
Title: Message Title Joel Brown assigned an issue to Joel Brown Jenkins / JENKINS-58745 P4Groovy p4.run() does not locate credentials in folder Change By: Joel Brown Assignee: Joel Brown Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.201048.156461302.11037.1565302560413%40Atlassian.JIRA.
[JIRA] (JENKINS-58745) P4Groovy p4.run() does not locate credentials in folder
Title: Message Title Joel Brown updated an issue Jenkins / JENKINS-58745 P4Groovy p4.run() does not locate credentials in folder Change By: Joel Brown When credentials to use are in a folder, using them in a script with p4.run() will not find the credential.Repro:create a folder.within the folder, create a credential and a pipleline job.The job's script references the credential in the folder.{ \ { script{}} \ {{ def ws = [$class: 'ManualWorkspaceImpl', name: "jenkins-${NODE_NAME}-${JOB_NAME}", }}{{ spec: [view: "//depot/main/utilities/AppUtilities/src/... //jenkins-${NODE_NAME}-${JOB_NAME}/..."]]}} \ {{ def p4 = p4(credential: 'build-u18-20182', workspace: ws)}} \ {{ def output = p4.run('sync')}} \ {{ }}} A p4sync step using the same credential succeeds. console log:[Pipeline] Start of Pipeline[Pipeline] nodeRunning on [Jenkins|http://jbrown-swarmu18.das.perforce.com:8080/computer/(master)/] in /var/lib/jenkins/jobs/pipelines/jobs/simple sync/workspace[Pipeline] {[Pipeline] script[Pipeline] {[Pipeline] p4[Pipeline] } [Pipeline] // script[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: P4: Task Exception: Invalid credentialsFinished: FAILURE Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To
[JIRA] (JENKINS-58745) P4Groovy p4.run() does not locate credentials in folder
Title: Message Title Joel Brown created an issue Jenkins / JENKINS-58745 P4Groovy p4.run() does not locate credentials in folder Issue Type: Improvement Assignee: Unassigned Components: p4-plugin Created: 2019-07-31 22:43 Labels: P4_VERIFY Priority: Major Reporter: Joel Brown When credentials to use are in a folder, using them in a script with p4.run() will not find the credential. Repro: create a folder. within the folder, create a credential and a pipleline job. The job's script references the credential in the folder. {{ script{}} {{ def ws = [$class: 'ManualWorkspaceImpl', name: "jenkins-${NODE_NAME}-${JOB_NAME}", }} {{ spec: [view: "//depot/main/utilities/AppUtilities/src/... //jenkins-${NODE_NAME}-${JOB_NAME}/..."]]}} {{ def p4 = p4(credential: 'build-u18-20182', workspace: ws)}} {{ def output = p4.run('sync')}} {{ }}} console log: [Pipeline] Start of Pipeline[Pipeline] nodeRunning on Jenkins in /var/lib/jenkins/jobs/pipelines/jobs/simple sync/workspace[Pipeline] {[Pipeline] script[Pipeline] {[Pipeline] p4[Pipeline] } [Pipeline] // script[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: P4: Task Exception: Invalid credentials Finished: FAILURE