Is it possible with inline scripts to be able to use python? I know it does bash scripting just fine, didn't know if there was a plugin that could do inline python or not.
Just use:
/usr/bin/python <<EOF
print "Hello, World!"
EOF
as the inline script body.
Once again... you are amazing. Thanks again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when I tried it, I get this error
<< was unexpected at this time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Przemek Bruski thank you for your reply
I am still getting error when attempting an python script "inline". I know your response is straight forward but can you elaborate more on how to achieve a python script inline?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to execute a longer script and use the "Command" task with a Python executable in order to have the Python capability automatically added you can do the following:
cat <<EOF >script.py
print "Hello, World!"
EOF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then again, anything non trivial should probably go into a file anyway.
Definitely. You can backup your database. But any build scripts should always be part of your source repository, whenever possible. You don't want to do a lot of 'hidden magic' that exists only in Bamboo Tasks (or any other CI tool for that matter)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
python -c "print 'Hello, World!'"
Maybe not the best solution for a large amount of python code. Then again, anything non trivial should probably go into a file anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.