I am utilizing an Azure Repo git artifact for a launch pipeline by which Javascript code is executed utilizing an npm job. The code from the repo is saved in a working listing like D:a1s_myCode
on the VM, the final half being the “Supply alias” outlined for the Artifact (I’m not allowed to not set an alias/set an empty alias).
I wish to now reuse the duty teams in a construct pipeline that may be triggered manually, however the duties have their working listing “inbuilt” (hardcoded).
I would really like to have the ability to inform the construct pipeline that it ought to obtain the code and execute it in <default working listing>_myCode
. Utilizing an setting variable System.DefaultWorkingDirectory
and setting it to ._myCode
doesn’t work.
This presumably being an XY drawback, the extra common query may very well be “How do I exploit the identical job teams in construct and launch pipelines?”