I have a repo on my DevOps Azure website by the name of "my_platform_services". This repo isn't a Java Maven or Gradle project or anything like that; it's mostly bash scripts.
I basically wanted to consume/use this repo into my Release pipeline, where I want to add a one Stage and a few tasks to run one of the bash scripts inside my_platform_services repo in the ovf/build directory!
I know I can add the Command line task in the Stage and put the code to run my script, which is:
./deploy.sh -i name -v 1.0.0
But I keep getting a No such file or directory error
I don't know how to access the working directory of that artifact/repo so I can run my script on that agent. I'm confused by my companies naming of the variables. Some of the build pipelines have variables like $BUILD_ARTIFACTSTAGINGDIRECTORY
, some of the scripts in the Release pipelines, which I was trying to emulated have $(System.DefaultWorkingDirectory)
, some are $(Build.ArtifactStagingDirectory)
.
I don't get why some are the same but capitalized or why some have parenthesis, and I tried looking at the Azure/Microsoft documentation but all the "pre-defined" pipeline variables they list aren't the same. I even looked at the respective pipelines (both release & build) variables to see if I would find any there, but there were just variables like constants and such for passwords or other variables (None that looked like this).
If I set a repo as an artifact for the Release pipeline, does it automatically get consumed, or do I still need to add a Task in the Stage (in the release pipeline) for "Download the Artifacts" from that specific repo?
So can anyone explain to me where these variables are defined and what the heck their paths are? I built some rudimentary build pipelines that were very simple and a release pipeline that consumed the build pipeline and deployed to Azure, but it used they "default" deploy to azure stage, so I didn't have to manually configure any directories or files. I'll take any help!!