How can I know if a script is running as a final task

As part of my build, I have some Python script that could be run either as a normal or final task.

Depending on that, I'll need to run some different logic.

Is there any way of determining if a script is running as a normal or a final task, from within the script?

1 answer

1 accepted

Accepted Answer
0 votes

You can pass a command-line argument to the script to tell it that it is being run in a finally task.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 4 hours ago in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

44 views 0 1
Read article

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