Hi,
i run bamboo on my server besides tomcat and i want to make a copy command from "script" task of bamboo to the tcat webapps folder.
If i run (inline script):
cp /var/atlassian/../TestApp.war /opt/tomcat/webapps
cp: cannot stat '/opt/tomcat/webapps/TestApp.war': Permission denied
If i run the shell:
su - bamboo
cp /var/atlassian/../TestApp.war /opt/tomcat/webapps
=> everthing is fine
background:
I am at a loss. The entire configuration was a homerun. A line script stops everything.
Thank you in advance! Cheers for Atlassian and their incredible products!
Marco
Silly question, but does bamboo actually run as the bamboo user?
Does the file TestApp.war already exist?
-Lars
ps aux | grep bamboo should list bamboo as the running user (first thing on the line)
Try cp -f /var/atlassian/../TestApp.war /opt/tomcat/webapps to overwrite the file. (I think this is what causes the error)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh no. -force does the trick. sorry and thanks!
While i was investigating the console says "whoami" "bamboo" inside inline script.
Thanks a lot lars!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries Marc! That`s why we are here.
Please mark the answer as solved
Cheers,
Lars, Kantega Single Sign-on
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.