[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Frederico Pratas edited a comment on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi,After some digging with the p4 team support [~joel_brown] and [~p4karl] we ([~citylife4] and I) managed to isolate and reproduce the credential issue.Another bug has been created to track this [JENKINS-58745|https://urldefense.proofpoint.com/v2/url?u=https-3A__issues.jenkins-2Dci.org_browse_JENKINS-2D58745=DwMFaQ=DPL6_X_6JkXFx7AXWqB0tg=VUE8IMWRw4czmli0hTPLrZPuDrGc8PQ2GmqEhHAtl3k=3KXou6GA2FrtnXhOqcjv2RQY5XfhgYTeevCKlb1aCb4=qnyLzr7KApU4zNDux6KUqghfuExaVVznYg9XlHHcYVQ=][~chriscarr] you may want to follow up in case the issue matches your setup as well.Thanks,Frederico 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.199083.1556813511000.4875.1564643580311%40Atlassian.JIRA.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Frederico Pratas commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi, After some digging with the p4 team support we (Jose Valverde and I) managed to isolate and reproduce the credential issue. Another bug has been created to track this JENKINS-58745 Chris Carr you may want to follow up in case the issue matches your setup as well. Thanks, Frederico 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.199083.1556813511000.4866.1564642380156%40Atlassian.JIRA.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Jose Valverde - Perfect. Thanks. 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.199083.1556813511000.15124.1563440460217%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Karl Wirth, Are you available to schedule a webex for next Monday (July 22) at 4PM UK time? I'm going to send the email to supp...@perforce.com now! Thanks! 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.199083.1556813511000.15113.1563439320220%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Chris Carr, Jose Valverde, I just wanted to check in again to see if either of you are available for a webex during UK working hours? 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.199083.1556813511000.14623.1563382500167%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Chris Carr, Jose Valverde I'd like to setup a webex with one of you to investigate further. Can one of you comment in this case then send an email to supp...@perforce.com so I can arrange that. Note: 1.0.2 just shipped today but as far as I know it has no credential related fixes. Thanks in advance. Karl 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.199083.1556813511000.7605.1562784301287%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Chris Carr commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files We've updated the p4 plugin to 1.10.1, and the issue still persists. I also tried adding a p4sync() call, using the same credentials string to do a preview sync in the same job. It worked fine, so the credentials are definitely okay. 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.199083.1556813511000.6838.1562763840522%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Karl! I'm having the same issue as mentioned above. And we are also using version 1.9.6! Running in Durability level: MAX_SURVIVABILITY[Pipeline] Start of Pipeline[Pipeline] node[Pipeline] {[Pipeline] timestamps[Pipeline] {[Pipeline] stage[Pipeline] { (Test)[Pipeline] echo*09:20:51* Test[Pipeline] script[Pipeline] {[Pipeline] echo*09:20:51* In function ...[Pipeline] p4[Pipeline] } [Pipeline] // script[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // timestamps[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: P4: Task Exception: Invalid credentials Finished: 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 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.199083.1556813511000.2198.1562315100219%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Chris Carr edited a comment on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi :). I ran the job, and it failed with the output below.I double checked the credentials name, and it was correct (and it's using the same credentials with a P4Sync call that has no problems). We're on version 1.9.6 of the Jenkins plugin, but plan on updating to 1.10.0 very shortly. {{ }} {{ Started by user ccarr Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline [Pipeline] nodeRunning nodeRunning on [ Jenkins |https://jenkins-master.aws.bossalien.com/computer/(master)/] in /var/lib/jenkins/workspace/Project/Test_P4Jenkins [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] stage [Pipeline] { (Test) [Pipeline] echo *17 18 :37:36 * Test [Pipeline] script [Pipeline] }} { {{ [Pipeline] echo *17 18 :37:36 * In function ... [Pipeline] p4 [Pipeline] } }}{{ [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timestamps [Pipeline] } [Pipeline] // node [Pipeline] End of PipelineERROR PipelineERROR : P4: Task Exception: Invalid credentials }} {{ Finished: 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 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.199083.1556813511000.2042.1562262600432%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Chris Carr edited a comment on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi :). I ran the job, and it failed with the output below.I double checked the credentials name, and it was correct (and it's using the same credentials with a P4Sync call that has no problems). We're on version 1.9.6 of the Jenkins plugin, but plan on updating to 1.10.0 very shortly. --- Started by user ccarrRunning in Durability level: MAX_SURVIVABILITY[Pipeline] Start of Pipeline[Pipeline] nodeRunning on Jenkins in /var/lib/jenkins/workspace/Project/Test_P4Jenkins[Pipeline] {[Pipeline] timestamps[Pipeline] {[Pipeline] stage[Pipeline] { (Test)[Pipeline] echo18:37:36 Test[Pipeline] script[Pipeline] { { [Pipeline] echo 18:37:36 In function ... [Pipeline] p4 [Pipeline] } [Pipeline] // script[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // timestamps[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 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.199083.1556813511000.2046.1562262600519%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Chris Carr commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi . I ran the job, and it failed with the output below. I double checked the credentials name, and it was correct (and it's using the same credentials with a P4Sync call that has no problems). We're on version 1.9.6 of the Jenkins plugin, but plan on updating to 1.10.0 very shortly. Running in Durability level: MAX_SURVIVABILITY[Pipeline] Start of Pipeline[Pipeline] nodeRunning on Jenkins in /var/lib/jenkins/workspace/Project/Test_P4Jenkins[Pipeline] {[Pipeline] timestamps[Pipeline] {[Pipeline] stage[Pipeline] { (Test)[Pipeline] echo*17:37:36* Test[Pipeline] script[Pipeline] {[Pipeline] echo*17:37:36* In function ...[Pipeline] p4[Pipeline] } [Pipeline] // script[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // timestamps[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: P4: Task Exception: Invalid credentials Finished: 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 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.199083.1556813511000.2034.1562262420294%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Chris Carr edited a comment on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi :). I ran the job, and it failed with the output below. I double checked the credentials name, and it was correct (and it's using the same credentials with a P4Sync call that has no problems). We're on version 1.9.6 of the Jenkins plugin, but plan on updating to 1.10.0 very shortly. {{ }} {{ Running in Durability level: MAX_SURVIVABILITY[Pipeline] Start of Pipeline[Pipeline] nodeRunning on [Jenkins|https://jenkins-master.aws.bossalien.com/computer/(master)/] in /var/lib/jenkins/workspace/Project/Test_P4Jenkins[Pipeline] {[Pipeline] timestamps[Pipeline] {[Pipeline] stage[Pipeline] { (Test)[Pipeline] echo*17:37:36* Test[Pipeline] script[Pipeline] }} { {{ [Pipeline] echo*17:37:36* In function ...[Pipeline] p4[Pipeline] } }}{{ [Pipeline] // script[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // timestamps[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: P4: Task Exception: Invalid credentials }} {{ Finished: 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 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.199083.1556813511000.2038.1562262420371%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi both. I hit this invalid credentials when there was a typo in my credential ID. Can you please try the following simple code test to see if it works for you. Please replace 'JenkinsMaster' with the name of your Perforce credential ID and '//depot/Jam/...' with a small path in your depot: def p4SyncLabel(String credential, String ws_name, String ws_view, String label, boolean append, boolean force){ echo "In function ..." def ws = [$class: 'ManualWorkspaceImpl', name: ws_name, spec: [view: ws_view]] def p4 = p4(credential: credential, workspace: ws) p4.run('sync') echo "... function end" } pipeline { agent { label 'master' } options { timestamps() } stages { stage('Test') { steps{ echo 'Test' script{ p4SyncLabel('JenkinsMaster', "jenkins_${NODE_NAME}_${JOB_BASE_NAME}_${EXECUTOR_NUMBER}", "//depot/Jam/... //jenkins_${NODE_NAME}_${JOB_BASE_NAME}_${EXECUTOR_NUMBER}/...", 'head', true, false ) } } } } } 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.199083.1556813511000.1987.1562253840370%40Atlassian.JIRA. For more options, visit
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Chris Carr commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files I'm hitting the same problem - I've been experimenting with using the P4 object to sync to a small subset of the stream we are building on. Using p4sync with the same credentials works correctly, but creating a p4 object and then syncing fails with "ERROR: P4: Task Exception: Invalid credentials". Unfortunately it's not practical to fully sync to our streams on the master, as they are quite large. 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.199083.1556813511000.5511.1561133100532%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Jose Valverde - Sorry I've been on vacation. I'll take a look and get back to you. 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.199083.1556813511000.22553.1559813640123%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth assigned an issue to Karl Wirth Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Change By: Karl Wirth Assignee: Karl Wirth 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.199083.1556813511000.22547.1559813580786%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Paul Allen updated an issue Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Change By: Paul Allen Labels: P4_B P4_C 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.199083.1556813511000.21002.1559655480438%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Karl Wirth, Do you have any ideia on why we are having this problem? Thanks for the help, Jose 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.199083.1556813511000.17236.1559291640267%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde edited a comment on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi [~p4karl],Do you have any ideia idea on why we are having this problem?Thanks for the help,Jose 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.199083.1556813511000.17237.1559291640279%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Frederico Pratas commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Karl Wirth, I've also tried this kind of construction. In my case I have created a shared library (my_groovy_lib). Inside the vars/ folder I've placed a call p4SyncLabel.groovy (see in attachmentp4SyncLabel.groovy Then inside the main pipe I call: #!/usr/bin/env groovy @Library('my_groovy_lib') _ // Pipeline steering pipeline { agent { label 'my_slave_0' } options { timestamps() } stages { stage('Test') { steps{ echo 'Test' script{ p4SyncLabel('my_p4_ticket_id', "jenkins_${NODE_NAME}_${JOB_BASE_NAME}_${EXECUTOR_NUMBER}", "//depot/... //jenkins_${NODE_NAME}_${JOB_BASE_NAME}_${EXECUTOR_NUMBER}/...", 'head', true, false ) } } } } } I'm getting the following output: Started by user Frederico Pratas Running in Durability level: MAX_SURVIVABILITY Loading library my_groovy_lib@master ... p4 client -o jenkins_shared_lib_master_example + ... p4 info + ... p4 info + ... p4 client -o jenkins_shared_lib_master_example + ... No change in client detected. ... p4 counter change + ... p4 changes -m1 -ssubmitted //jenkins_shared_lib_master___ + Building on Node: master ... p4 client -o jenkins_shared_lib_master_example + ... p4 info + ... p4 info + ... p4 client -o jenkins_shared_lib_master_example + ... No change in client detected. P4 Task: establishing connection. ... server: X:1666 ... node: X P4 Task: reverting all pending and shelved revisions. ... p4 revert /var/lib/jenkins/workspace/example%40libs/sn___ + ... rm [abandoned files] duration: (845ms) P4 Task: cleaning workspace to match have list. ... p4 reconcile -w -f /var/lib/jenkins/workspace/example%___ + duration: 0m 1s P4 Task: syncing files at change: X ... p4 sync -q /var/lib/jenkins/workspace/example%40libs/s___ + duration: 0m 4s P4 Task: saving built changes. Found last change X on syncID jenkins_shared_lib_NODE_NAME_example ... p4 client -o jenkins_shared_lib_master_example + ... p4 info + ... p4 info + ... p4 client -o jenkins_shared_lib_master_example + ... No change in client detected. ... p4 changes -m20 //jenkins_shared_lib_master_example/..___ + ... p4 changes -l -m1 @X + ... p4 user -o pratas + ... p4 describe -s -m51 X + ... p4 fixes -cX + ... done [Pipeline] Start of Pipeline [Pipeline] node Running on my_slave_0 in /users/jenkins/workspace/example [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] stage [Pipeline] { (Test) [Pipeline] echo 09:45:20 Test [Pipeline] script [Pipeline] { [Pipeline] p4 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timestamps [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: P4: Task Exception: Invalid credentials Finished: FAILURE I'm using the same credential that is used to load the library from p4, which as you can see works fine. Any ideas what is
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Frederico Pratas updated an issue Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Change By: Frederico Pratas Attachment: p4SyncLabel.groovy 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.199083.1556813511000.20415.1557256200163%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Karl Wirth, My mistake, indeed I have my jenkins credentials on the fcredentials options not my workspace name. 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.199083.1556813511000.19851.1557237240134%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Jose Valverde, Sorry 'credential' is a typo. That should be your Jenkins credential not the workspace name. For example: def p4 = p4 (credential: 'myJenkinsCrentialName',workspace: ... 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.199083.1556813511000.19849.1557236640122%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Karl Wirth, I'm trying to change my job to run a P4Groovy, and I've created an example as in the link you've shared, and i'm getting the following error: [Pipeline] End of Pipeline ERROR: P4: Task Exception: Invalid credentials This is my test code: node("my_node") { // Define workspace def ws = [$class: 'StreamWorkspaceImpl', charset: 'none', format: 'jenkins-${JOB_NAME}', pinHost: false, streamName: '//my_workspace']// Create object def p4 = p4 (credential: 'my_client', workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}', pinHost: false, spec: clientSpec(allwrite: false, backup: true, changeView: '', clobber: true, compress: false, line: 'LOCAL', locked: false, modtime: false, rmdir: false, serverID: '', streamName: '', type: 'WRITABLE', view: 'my_workspace'))) p4.run('sync','...') } Please note that "my_client" is the same using in other working jobs. Is there any additional configuration needed on my job, rather then what is on the shared link (de-select groovy sandbox) ? Thanks for the help! 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"
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Karl Wirth . Thanks for you feedback, In the meanwhile, I'll try to sync my workspace as you've instructed! 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth assigned an issue to Unassigned Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Change By: Karl Wirth Assignee: Karl Wirth 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth updated an issue Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Change By: Karl Wirth Labels: P4_B 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Jose Valverde. I have not been able to find a way to do this so will mark this as an enhancement request for the developers. The workaround would be to do the whole sync using P4Groovy: https://www.perforce.com/manuals/jenkins/Content/P4Jenkins/p4groovy.html?Highlight=P4Groovy You could then specify the command line you need for the sync. 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde updated an issue Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Change By: Jose Valverde I've created a perforce workspace and I've sync it to the head version.However I would like to sync the same workspace to a label but without deleting files that are not in the label. Like running the command p4 sync /... @=label . I've tried with may continuations many combinations of the populate command but all of them have run something like p4 sync /... @label Is there a way to have a to run the p4sync command to create on jenkins so that it run a p4 sync * ** * @= command?* *Thanks!* 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth commented on JENKINS-57314 Re: P4 Sync to label after sync to head without deleting non labeled files Hi Jose Valverde - Not sure so I will try it out here and get back to you with my findings. 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Karl Wirth assigned an issue to Karl Wirth Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Change By: Karl Wirth Assignee: Karl Wirth 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. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57314) P4 Sync to label after sync to head without deleting non labeled files
Title: Message Title Jose Valverde created an issue Jenkins / JENKINS-57314 P4 Sync to label after sync to head without deleting non labeled files Issue Type: Bug Assignee: Unassigned Components: p4-plugin Created: 2019-05-02 16:11 Environment: linux Priority: Major Reporter: Jose Valverde I've created a perforce workspace and I've sync it to the head version. However I would like to sync the same workspace to a label but without deleting files that are not in the label. Like running the command p4 sync /... @=label . I've tried with may continuations of the populate command but all of them have run something like p4 sync /... @label Is there a way to have a to run the p4sync command to create a @= command? Thanks! Add Comment