Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trigger job only when new file is placed in a folder Edited

We have a project which doesn't use version control tool. Developers will place the input files in the shared drive folder. Bamboo has to trigger the deployment plan only when new files are found in that location. It should be like Polling repository. Bamboo has to check the folder every 10 mins and triggers a job if new file is found. Is there a way to achieve this trigger in Bamboo? 

1 answer

1 accepted

1 vote
Answer accepted

Hi Elavarasan,


This isn't possible by default but you could build ascript (outside Bamboo) to look for changes in that folder and trigger a REST call to Bamboo to fire off a build if there's a change every 10 minutes.


Here is a guide to the Bamboo REST API documentation to get you started! In addition, here is a Sample script provided by one of the Bamboo Premier Support Engineers:




DIRECTORY_COUNT=$(ls -lr | wc -l)

if [ ! -f $COUNTER ]; then
    # create counter file
    # used to store the amount of files/directories within a directory
    echo $((DIRECTORY_COUNT+1)) > $COUNTER


if [[ "$COUNT" -lt "$DIRECTORY_COUNT" ]]; then
    # new file/directory was created

    # replace BAMBOO_ADMIN_USER with Bamboo administrator username
    # replace BAMBOO_ADMIN_PASS with Bamboo administrator password
    # replace http://localhost:8085 with Bamboo's Base URL
    # replace PROJ-PLAN with planKey that should be triggered
         -X POST 'http://localhost:8085/rest/api/latest/queue/PROJ-PLAN'


P.S. You must make the script executable.


The above script is for Linux/OS X, however, that should help you get started. You will need to make sure you use the correct system calls, etc. for Windows. To make it platform agnostic you may want to consider using Python to create the script.


In addition, I would also recommend you create a Suggestion on JAC to have this feature added to Bamboo. Once you do that please post the link here so others can vote on it and add impact.





Hi Branden,

Thanks for the answer. I will try that using REST APIs. As you recommended, I have created a Jira  ticket. Expecting this feature soon :) 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program

G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...

967 views 0 16
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you