Adding Condition to Deploy Stage Dependency Cache
The Issue: our ADO pipelines are currently expecting the folder $(Pipeline.Workspace)/.m2/repository
to exist for every service in the deploy
stage of the pipeline. This folder exists for services with tests written in java because that is where we store Maven dependencies. This folder does not exist for services with integration tests written in Python. This causes pipeline failures for services with tests written in Python because in the caching step of ADO, it tries to upload the contents of $(Pipeline.Workspace)/.m2/repository
, but this folder doesn't exist.
The fix: Make the deploy stage dependency cache not run if parameters.runPythonTest
is set to true