Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,351
Community Members
 
Community Events
176
Community Groups

Need to add script task through api

Can anyone help me with the api (post )for adding task (Script task) to deployment plan 

I am trying to add it through bash script and also through java 

Any leads will be helpful

1 answer

0 votes

Hi @Akshara Prasad,

I wish it was that simple and I could just provide you with a REST API endpoint for this.

Bamboo provides a way to add and remove tasks from deployments but only if your deployment is configured through specs. There is know public REST API endpoint only to add tasks.

If you don't know specs, I suggest you start with this document:

And run some tests with:


In Java specs the code part to create a script task in a deployment environment would be something like:

.environments(new Environment("MyEnvironment")
.tasks(new ScriptTask()
.description("My script task")
.inlineBody("echo \"Hello World\"")));

I hope that helps.

Thanks Daniel..will try with this

Like Daniel Santos likes this

You are welcome! =]

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events