Replies: 2 comments
-
So the TL;DR is: why does AzurePipelinesAttribute generate pipeline YML with each target in a separate job? How can the output of one target be fed into the next (Compile generates binaries, Pack sticks the existing binaries into a package) with the auto-generated YML? |
Beta Was this translation helpful? Give feedback.
-
I was able to work around this behavior by adding this to my
This skips creating separate jobs for all of the dependent targets - which creates much saner pipeline YML. Each target runs serially in the same job instead of in parallel jobs. It is still mysterious to me why the default behavior generates parallel jobs for targets that are ran serially locally. Additionally, it is a bit of a bummer that neither |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to use NUKE to build my library in an auto-generated ADO pipeline.
I made a repo to demonstrate what I'm talking about:
https://github.com/bensmooth/NukeAdoPipelineTest/tree/master
Note the logging of files in
bin\
in the Compile and Pack targets in myBuild.cs
.This is the content of the auto-generated
azure-pipelines.CI.yml
:I am using Microsoft-provided agents, and am not self-hosting.
The problem is that each target gets put into its own job, which means that the changes to the filesystem in previous steps don't carry over into the next steps. The build fails on the Pack step for this reason, because I have
SetNoBuild(true)
in Pack, and thebin/
output directory is empty.Output after Compile (lots of built files):

The output from ADO in the Pack target lists no files.

Am I missing something fundamental, or is this intended behavior? I realize I could just roll my own YML that just invokes the
CI
target, but I was hoping to leave the YML to NUKE, since it should be the main source of truth for how to build the library.Beta Was this translation helpful? Give feedback.
All reactions