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,551,975
Community Members
 
Community Events
184
Community Groups

Bitbucket Pipeline on Windows How to Execute the Script always

Hi, how I have to configure the execution of the script every time windows start and how to keep the execution in background.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 29, 2022

Hi @lprada,

I assume that you are referring to a Windows Runner?

I'm not sure how to keep the execution in the background, but if you don't mind running it in the foreground you can do the following:


1. Find the location where you unzipped atlassian-bitbucket-pipelines-runner.zip, let's say this is

C:\Users\<My_User>\Documents\atlassian-bitbucket-pipelines-runner\

2. Create a .cmd file in your computer, named e.g. startRunner.cmd with the following content:

cd C:\Users\<My_User>\Documents\atlassian-bitbucket-pipelines-runner\bin & powerShell C:\Users\<My_User>\Documents\atlassian-bitbucket-pipelines-runner\bin\start.ps1 -accountUuid '{.....}' -runnerUuid '{.....}' -OAuthClientId ..... -OAuthClientSecret ..... -workingDirectory '..\temp'

where

  • C:\Users\<My_User>\Documents replace with the directory where atlassian-bitbucket-pipelines-runner is located
  • the arguments given after C:\Users\<My_User>\Documents\atlassian-bitbucket-pipelines-runner\bin\start.ps1 in the content should be copied from the preconfigured runner command you were given when you created the Windows Runner from Bitbucket website

You can then create a scheduled task in Windows to run the file startRunner.cmd every time your Windows user or another user logs in to Windows.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events