[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Matthew Dews commented on JENKINS-58119 Re: Cant run P4Groovy sync on multiple executors I ran into a similar issue on Jenkins 2.204.1, P4-Plugin 1.10.7 when calling a python script that uses p4python. It reported: Client Root: C:\Program Files (x86)\Jenkins\workspace\MyJob%404 Current Dir: c:\Program Files (x86)\Jenkins\workspace\MyJob@4 Relevant snippet from python script: p4 = P4() try: p4.connect() info = p4.run("info") #... client_root = info[0]['clientRoot'] if 'clientRoot' in info[ 0] else 'unknown' client_cwd = info[0]['clientCwd'] if 'clientCwd' in info[ 0] else 'unknown' #... print("Client Root:\t" + client_root) print("Current Dir:\t" + client_cwd) The workaround Joel describes fixed the issue for me. This was preventing us from running multiple jobs at once. 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.200164.1561045657000.1239.1577807940238%40Atlassian.J
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Paul Allen updated an issue Jenkins / JENKINS-58119 Cant run P4Groovy sync on multiple executors Change By: Paul Allen Priority: Blocker Major 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.200164.1561045657000.1600.1575558300572%40Atlassian.JIRA.
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Joel Brown edited a comment on JENKINS-58119 Re: Cant run P4Groovy sync on multiple executors Workaround should be to start all nodes running concurrent builds to not use "@": start jvm with {{"-Dhudson.slaves.WorkspaceList=_"}} 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.200164.1561045657000.7567.1561395120087%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Joel Brown commented on JENKINS-58119 Re: Cant run P4Groovy sync on multiple executors Workaround should be to start all nodes running concurrent builds to not use "@": "-Dhudson.slaves.WorkspaceList=_" 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.200164.1561045657000.7565.1561395000117%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Karl Wirth updated an issue Jenkins / JENKINS-58119 Cant run P4Groovy sync on multiple executors Change By: Karl Wirth 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.200164.1561045657000.7334.1561383900072%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Karl Wirth updated an issue Jenkins / JENKINS-58119 Cant run P4Groovy sync on multiple executors Change By: Karl Wirth Priority: Minor Blocker 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.200164.1561045657000.7333.1561383841634%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Karl Wirth updated an issue Jenkins / JENKINS-58119 Cant run P4Groovy sync on multiple executors Change By: Karl Wirth Environment: Jenkins 2.138.1 /2.164.2 P4-Plugin 1.10.0 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.200164.1561045657000.7283.1561376880504%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Karl Wirth updated an issue Jenkins / JENKINS-58119 Cant run P4Groovy sync on multiple executors Change By: Karl Wirth If you try to run concurrent P4Groovy jobs that need to create a workspace you will see the error: {code:java} ... p4 client -i p4 client -i Error in client specification. Embedded special characters (*, %%, #, @) not allowed in '/var/lib/jenkins/workspace/JOB_NAME@2'. {code} This is caused by the 'root' field being parsed as if its a view field. *Reproduction Steps:*(1) Create a pipeline job using the following build script: {code:java}node ('master'){stage('Checkout') { def p4Workspace = 'jenkins-${NODE_NAME}-${JOB_NAME}-$[EXECUTOR}-src' def ws = [$class: 'ManualWorkspaceImpl', name: p4Workspace , spec: [view: '//depot/Data/... //'+p4Workspace+'/...']] def p4 = p4(credential: 'JenkinsCredential', workspace: ws) def response3 = p4.run('sync') echo (response3.toString()) sleep 30 }}{code}(2) Run build.(3) Wait 5 seconds(4) Run build again. The first build will run without error. The second build will fail immediatly due to '@2' being appended to the workspace root path by Jenkins:{noformat}Started by user unknown or anonymousRunning in Durability level: MAX_SURVIVABILITY[Pipeline] nodeRunning on Jenkins in /var/lib/jenkins/workspace/P4Groovy@2[Pipeline] {[Pipeline] stage[Pipeline] { (Checkout)[Pipeline] p4... p4 client -o jenkins-master-P4Groovy-$[EXECUTOR}-src +... p4 info +... p4 info +... p4 client -o jenkins-master-P4Groovy-$[EXECUTOR}-src +... p4 client -i +P4: Unable to setup workspace: com.perforce.p4java.exception.RequestException: Error in client specification.Embedded special characters (*, %%, #, @) not allowed in '/var/lib/jenkins/workspace/P4Groovy@2'. at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.handleErrorStr(ResultMapParser.java:145) at com.perforce.p4java.impl.mapbased.server.cmd.ResultMapParser.parseCommandResultMapIfIsInfoMessageAsString(ResultMapParser.java:96) at com.perforce.p4java.impl.mapbased.server.cmd.ClientDelegator.updateClient(ClientDelegator.java:195) at com.perforce.p4java.impl.mapbased.server.Server.updateClient(Server.java:1506) at com.perforce.p4java.impl.mapbased.client.Client.update(Client.java:516) at org.jenkinsci.plugins.p4.client.ClientHelper.updateClient(ClientHelper.java:180) at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:159) at org.jenkinsci.plugins.p4.client.ClientHelper.(ClientHelper.java:101) at org.jenkinsci.plugins.p4.tasks.AbstractTask.tryTask(AbstractTask.java:161) at org.jenkinsci.plugins.p4.groovy.P4GroovyTask.invoke(P4GroovyTask.java:42) at org.jenkinsci.plugins.p4.groovy.P4GroovyTask.invoke(P4GroovyTask.java:19) at hudson.FilePath.act(FilePath.java:1077) at hudson.FilePath.act(FilePath.java:1060) at org.jenkinsci.plugins.p4.groovy.P4Groovy.run(P4Groovy.java:62) at sun.reflect.GeneratedMethodAc
[JIRA] (JENKINS-58119) Cant run P4Groovy sync on multiple executors
Title: Message Title Karl Wirth created an issue Jenkins / JENKINS-58119 Cant run P4Groovy sync on multiple executors Issue Type: Improvement Assignee: Unassigned Components: p4-plugin Created: 2019-06-20 15:47 Environment: Jenkins 2.138.1 P4-Plugin 1.10.0 Labels: P4_VERIFY Priority: Minor Reporter: Karl Wirth If you try to run concurrent P4Groovy jobs that need to create a workspace you will see the error: ... p4 client -i p4 client -i Error in client specification. Embedded special characters (*, %%, #, @) not allowed in '/var/lib/jenkins/workspace/JOB_NAME@2'. This is caused by the 'root' field being parsed as if its a view field. Reproduction Steps: (1) Create a pipeline job using the following build script: node ('master'){ stage('Checkout') { def p4Workspace = 'jenkins-${NODE_NAME}-${JOB_NAME}-$[EXECUTOR}-src' def ws = [$class: 'ManualWorkspaceImpl', name: p4Workspace , spec: [view: '//depot/Data/... //'+p4Workspace+'/...']] def p4 = p4(credential: 'JenkinsCredential', workspace: ws) def