Hi guys,

I regularly get the following errors in our Jenkins pipeline on XWiki:

ERROR: missing workspace /home/hudsonagent/jenkins_root/workspace/
XWiki_xwiki-platform_master-ZGNMAWOYB6APYNMYWF7HH475RM4M6C6RE2U76Y5M5RWNQJWOLFGA
 
on agent-2-1

[main] Caused by: java.io.IOException: /home/hudsonagent/jenkins_root/
workspace/XWiki_xwiki-platform_master-
ZGNMAWOYB6APYNMYWF7HH475RM4M6C6RE2U76Y5M5RWNQJWOLFGA/xwiki-platform-core/
xwiki-platform-flamingo/xwiki-platform-flamingo-themes/xwiki-platform-
flamingo-theme-test/xwiki-platform-flamingo-theme-test-tests/target/xwiki 
doesn't exist.

Our Jenkins file does this:

stage ('Platform Builds') {
  parallel(
    'main': {
      build(
        name: 'Main',
        goals: 'clean deploy',
        profiles: 'legacy,integration-tests,office-tests,snapshotModules',
        properties: '-Dxwiki.checkstyle.skip=true 
-Dxwiki.surefire.captureconsole.skip=true -Dxwiki.revapi.skip=true'
      )
      build(
        name: 'Distribution',
        goals: 'clean deploy',
        profiles: 'legacy,integration-tests,office-tests,snapshotModules',
        pom: 'xwiki-platform-distribution/pom.xml'
      )
      build(), ...
  }, ...

(Full file 
here: 
https://github.com/xwiki/xwiki-platform/blob/40cf4cf65e73728d53ee30ffcabd1534640dc9c5/Jenkinsfile#L26
 
)

And build() is running Maven on a node() (xwikiBuild() is pipeline library 
running Maven):

def build(map)
{
  node {
    xwikiBuild(map.name) {
...
    }

  }
}


In this situation, do you see any reason for Jenkins to delete a workspace 
on "main" and a reason for each node() call to not request a new workspace? 
So in short I guess I'm asking for some clarification on when workspaces 
are initialized.

Thanks!
-Vincent


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f86b156f-9126-4f78-becd-79cab6a28c55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to