Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What dictates the order of post jobs and can this be changed? #952

Closed
tomaustin700 opened this issue Jul 10, 2023 · 3 comments
Closed

What dictates the order of post jobs and can this be changed? #952

tomaustin700 opened this issue Jul 10, 2023 · 3 comments

Comments

@tomaustin700
Copy link

Environment

azure-pipelines-task-lib version: 3.1.0

Issue Description

Hi,
I have a task which has postjobexecution set to run a script, this script cleans down the sources directory on the agent. We are trying to use the caching task with this and the caching post job fails as my post job is cleaning the files up first. This can be seen in the below screenshot:
image

Is it possible to set the order of post jobs?

Expected behaviour

Ideally I'd like to be able to specify what order post jobs run in.

Actual behaviour

Unable to dictate post job order

Steps to reproduce

Have two post job tasks which run, unable to dictate the order they run.

@ismayilov-ismayil
Copy link
Contributor

Hi @tomaustin700, thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

@jessehouwing
Copy link
Contributor

From what I remember, the order is the reverse of how the actual tasks were inserted in the pipeline. First inserted task will run its post-task last.

@tomaustin700
Copy link
Author

@jessehouwing You're absolutely right! Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants