Use Agent.BuildDirectory instead of Agent.WorkFolder#53
Open
grotkiv wants to merge 1 commit intoblackducksoftware:masterfrom
Open
Use Agent.BuildDirectory instead of Agent.WorkFolder#53grotkiv wants to merge 1 commit intoblackducksoftware:masterfrom
grotkiv wants to merge 1 commit intoblackducksoftware:masterfrom
Conversation
Agent.WorkFolder is not mounted as docker volume by Azure Pipelines, if containers are used. This causes the SynopsisDetectTask to fail because the detect folder cannot be created. This commit changes the WorkingDirectory to Agent.BuildDirectory. The detect folder can be created and the detect script can be downloaded properly even from a container.
Author
|
Unfortunately, I'm not able to test this patch in our environment properly. Because the patch is just using another azure variable, I assumed it would be fine. As a quick fix this patch might be sufficient and helps others to get their container jobs running again. But the correct solution might be to use the Agent.ToolDirectory to download/install the detect.sh script. In the meanwhile my workaround is to create a local directory (e.g. Ensure the folder is writeable by the build user from within the container. This way the detect folder already exists and the detect script can be stored properly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent.WorkFolder is not mounted as docker volume by Azure Pipelines, if
containers are used. This causes the SynopsisDetectTask to fail because
the detect folder cannot be created.
This commit changes the WorkingDirectory to Agent.BuildDirectory. The
detect folder can be created and the detect script can be downloaded
properly even from a container.