I would like to sudo cp the downloaded artifact into the final deployment location. Unfortunately cp complains that it cannot find the file but looks in the very same working directory. Due to a debugging session I also insert a ls-debug task between artifact download and sudo cp. The file is there. Can anybody help me to solve this?
Snippets from the build log:
Preparing to download plan result TSDE-TSDE-1 artifact: Shared artifact: [TSDE Distribution Artifact], pattern: [Tomatenstau-de-*.tar.gz]
Artifact [TSDE Distribution Artifact] downloaded successfully in 0s to working directory
Finished task 'Download release contents' with result: Success
Starting task 'DEBUG' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
...
bamboo_build_working_directory=/srv/atlassian/data/bamboo/xml-data/build-dir/819202-950274
...
-rw-r--r-- 1 atlassian atlassian 9.1M Sep 17 10:53 Tomatenstau-de-0.001.tar.gz
...
Finished task 'DEBUG' with result: Success
Starting task 'Copy distribution artifact to the deplyment stage' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
...
bamboo_build_working_directory=/srv/atlassian/data/bamboo/xml-data/build-dir/819202-950274
...
cp: cannot stat `Tomatenstau-de-*.tar.gz': No such file or directory
Failing task since return code of [/usr/bin/sudo cp -f Tomatenstau-de-*.tar.gz /home/meik/tomatenstau.de/deploy-me/] was 1 while expected 0
Finished task 'Copy distribution artifact to the deplyment stage' with result: Failed