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

[Question]: How to order Post-Jobs in a build pipeline? #5043

Open
1 of 4 tasks
RainerMuehlberger opened this issue Nov 13, 2024 · 1 comment
Open
1 of 4 tasks

[Question]: How to order Post-Jobs in a build pipeline? #5043

RainerMuehlberger opened this issue Nov 13, 2024 · 1 comment

Comments

@RainerMuehlberger
Copy link

Describe your question

Hello,

for cleaning static agent purposes after a run we are using a self implemented task "Post Build Cleanup" with "postjobexecution" property to configure the task automatically into the post-job section of a build pipeline.

Now we realize that this task creates issues with a automatically created Post-Job: "nuget pipeline cache" which cannot work anymore because it is executed after the cleaning task. The "nuget pipeline cache" task must be executed before the cleaning task.

My question is: Do I have the possibility to change the order of the post-jobs? And when yes, where could I change this?

Thank you very much.

Greetings,
Rainer

Versions

  • Azure DevOps Services
  • Agent Version '3.232.1'

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Operation system

Windows Server 2019 Standard

Version controll system

git

Azure DevOps Server Version (if applicable)

No response

@aleksandrlevochkin
Copy link
Contributor

Hi @RainerMuehlberger thank you for the question. If my understanding is correct, the post-jobs steps are executed in reverse order compared to the placements of tasks in a pipeline, judging by this code.
I think to fix your issue the definition of the "Post Build Cleanup" task should be placed before the "nuget pipeline cache" task in the pipeline.

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

2 participants