-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Jenkins v1.414, ws-cleanup v0.5, multi-configuration jobs, publish over cifs v0.2, publish of scp v1.8.
When publishing post-build actions are configured, an order of operations problem can occur where the workspace plugin runs first - cleaning up everything before it can be published. The artifact publishing (SCP or CIFS) then runs and can't find the files it needs to upload, causing failed/unstable build runs respectively.
CIFS Log:
BUILD SUCCESSFUL
Total time: 42 seconds
Deleting project workspace... done
CIFS: Failed to get hostname [********: ********]
CIFS: Connecting with configuration [BuildRepository] ...
CIFS: Disconnecting configuration [BuildRepository] ...
ERROR: Exception when publishing, exception message [The base directory does not exist. If this is a promotion, have you "Archived the artifacts"?]
Build step 'Send build artifacts to a windows share' changed build result to UNSTABLE
SCP Log:
BUILD SUCCESSFUL
Total time: 1 minute 2 seconds
Deleting project workspace... done
[SCP] Connecting to *************
ERROR: Publisher be.certipost.hudson.plugin.SCPRepositoryPublisher aborted due to exception
/var/lib/build/******* does not exist.
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474)
at hudson.FilePath.glob(FilePath.java:1240)
at hudson.FilePath.access$600(FilePath.java:164)
at hudson.FilePath$23.invoke(FilePath.java:1219)
at hudson.FilePath$23.invoke(FilePath.java:1217)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1980)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:270)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Email was triggered for: Failure