Yaml pipeline implementing different jobs in azure #23269
Unanswered
untecnologo
asked this question in
Questions
Replies: 1 comment
-
I'm going to convert this to a discussion question so that it can be discussed more easily. Please also consider joining the Community Discord and start a discussion there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Documentation issue
I have a pipeline with an stage (CodeQualityTestandBuild).
I created the pipeline based on this documentation https://nx.dev/ci/recipes/set-up/monorepo-ci-azure.
As a part of my strategy I wanted to divide in different jobs my stage:
1 - Job: CodeQuality
2.- Job: Testing
3.- Job: Build
Each one is dependent of the previous job.
Azure DevOps pool, assign a different agent in every job. So at the end of the CodeQuality an artifact (folder with files) should be created to keep the files that run in the pool _temp.
1-. Code Quality :
npm ci
npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t typecheck
npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t lint
npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t prettier-check
$(Pipeline.Workspace)/drop
(I think this is mandatory because of the pool per job).2.- Testing
- job: Tests
dependsOn: CodeQuality
steps:
- download: current
artifact: drop
- script: |
cd $(Pipeline.Workspace)/drop/
npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t test-coverage
In this moment is when the error happens. I can not have access to the repo to compare because it is not a repo folder.
My question is, is there a way or solution to split in jobs different activities with the Pipeline or it is always mandatory due to the architecture of Azure pipelines that they run together in the same job?
Is there a specific documentation page you are reporting?
Enter the URL or documentation section here.
Additional context or description
Provide any additional details here as needed.
Beta Was this translation helpful? Give feedback.
All reactions