Auto Upgrade On Prem Runners

Michael Adams
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2023

Hi, We are running windows runners on prem. Since new versions come out frequently we are investigating maybe scripting auto installing the latest runner. I looked through the API to see if there were anything there I could use but didn't find anything.  We have the script to do the actual download and install but for complete automation we are missing a few steps:

  • Know there is a new version available (parse the log of the latest run? not ideal)
  • Get the version # of the latest version (parse the log of the latest run? not ideal)
  • Know if the runner is actively "running" or is idle (parse log of latest run? nasty)
  • Request runner to shut down cleanly (Maybe OS soft kill flag instead of hard kill)

Anyone know of any ways to accomplish the above (other than all the freaking log parsing)?

Thanks.

2 answers

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2023

Hi Michael and welcome to the community.

I'm afraid that we don't have any API endpoints to get this information.

We have feature requests for providing API endpoints for runners and also for providing auto-update options:

I would suggest adding your vote to these feature requests (by selecting the Vote for this issue link) to express your interest. You can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates. Implementation of features is done as per our policy here and any updates will be posted in the feature requests.

In the meantime, parsing the logs would be the way to get this info programmatically.

Kind regards,
Theodora

0 votes
Marc-A _Nimbax_
Contributor
August 3, 2023

If you really want to go that route maybe using a docker to implement jira could be a nice solution 

I do it in a dev env using docker-compose

Using the 
atlassian/jira-software:latest docker image.

 

It's been a long time but here is the doc on how we did it.

https://www.digitalocean.com/community/tutorials/how-to-automatically-update-docker-container-images-with-watchtower-on-ubuntu-22-04

(container is ubuntu but replace with jira container and it's the same logic )

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events