Just started using the workflow-plugin the other day, and I'm attempting to migrate a project to it, but am running into some issues. At this point I'm trying to figure out if these are limitations with the plugin or syntax errors on my part.
*1)* Is it possible to have more than 2 workspaces for a job on a node? My script is basically: node('Slave') { // So stuff, create intermediate artifacts } parallel firstBranch: { node('Slave') { ws { // Take intermediate artifacts, turn them into final artifacts } } }, secondBranch: { node('Slave') { ws { // Take intermediate artifacts, turn them into final artifacts } } } I'm using archive and unarchive to pass around the intermediate artifacts, and that seems to be working fine. However, it looks like firstBranch and secondBranch are both happening in the same workspace (MyProject@2). My understanding is that each ws {} call should create a new workspace, thus ending up with 3 total workspaces for my project, but when I look at the workspace folders, I'm only seeing 2. Is this a bug or is my ws {} syntax wrong? *2)* I would really like to clean the workspace before the job starts. Before moving to workflow-plugin, I was using the SCM clean before checkout option (I'm using a git repo). However, using the Snippet Generator, when I select the General SCM step and fill in the fields, it gives me: node('Slave') { checkout changelog: true, poll: true, scm: [$class: 'GitSCM', branches: [[name: 'refs/heads/release/v27a']], doGenerateSubmoduleConfigurations: false, extensions: [<object of type hudson.plugins.git.extensions.impl.CleanBeforeCheckout>], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '6e4453b5-7c18-4458-912a-dfd1d088d952', url: 'ssh://git@m2082368-gitvm:7999/ov/optiview.git']]] } Which gives me a syntax error (and freezes the build) on extensions: [<object of type hudson.plugins.git.extensions.impl.CleanBeforeCheckout>]. I tried playing around with this field, but I couldn't figure out how to get it to work. Does the extensions field work for GitSCM for the checkout step, or is this a bug? Thanks, Nate -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/workflow-plugin-A-couple-questions-tp4731524.html Sent from the Jenkins users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1418835119083-4731524.post%40n4.nabble.com. For more options, visit https://groups.google.com/d/optout.