Script Vs Executable/Command

What's the advantage of using a script file (as a task) over using a .bat file registered as an executable (also as a task)?

Script:

https://confluence.atlassian.com/display/BAMBOO/Script

Executable:

https://confluence.atlassian.com/display/BAMBOO/Custom+command+executable

1 answer

1 accepted

This widget could not be displayed.

An executable is a user-created script that lives on the agent. One advantage is that when a job uses an executible, it becomes a requirement for that job and will only go on agents that can access that executible. Also, since an executible is a file it can be centrally maintained as opposed to script tasks which can be anything. For example, suppose you have some workflow where a task needs to open and read a specific file. You could add that logic to the executible file and push it out to all the agents and any task that uses that command would then start using it. Compare that to script tasks where you would have to go out, find all the script tasks that are implementing that workflow and update them one by one.

Script tasks are great for quickly inserting shell commands into a bamboo job. But if you need more centralized control without writing a new task plugin, executibles work well.

Finally, historically all user-defined functionality was controlled through executibles in earlier versions of Bamboo before tasks were ever implemented.

Thank you Brent!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

98 views 13 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you