0
votes

I'm completely new to Azure DevOps Pipelines so if I'm doing something incorrectly I'd appreciate a nod in the right direction... I setup a build pipeline and that seems to be working, now I'm trying to setup a release pipeline in order to run tests, it's mostly based on Microsoft's documentation:

https://docs.microsoft.com/en-us/azure/devops/test/run-automated-tests-from-test-hub?view=azure-devops

Before running tests I need to transform a config file to replace some variables like access keys, usernames, etc. What I setup is what I have below but for the life of me I can't figure out what text box Package or folder refers to. The documentation is super helpful as you can imagine:

File path to the package or a folder

but what package or what folder is this referring to??? I've tried several different things but everything errors with

##[error]Error: Nopackagefoundwithspecifiedpattern D:\a\r1\a\**\*.zip

or pretty much whatever I specify for a value.

enter image description here

1
Hi @socalcheesehead. Is there any update about this ticket? Feel free to let me know if the answer could solve this issue. Thanks.Kevin Lu-MSFT

1 Answers

1
votes

The File Transform task supports the .zip files.

Test with the default File Transform task settings, I could reproduce this issue.

In Release pipeline, the file path could has one more node for the build artifacts .zip file.

The format example:

$(System.DefaultWorkingDirectory)\{Source alias name}\{Artifacts name}\*.zip

So you could try to set the $(System.DefaultWorkingDirectory)/**/**/*.zip in Package Or folder field

For example:

enter image description here

On the other hand, you can check the specific path in the Release log -> Download Artifacts Step.

enter image description here

$(System.DefaultWorkingDirectory): D:\a\r1\a

You could aslo use this specific path in the task.

Update:

If your file is Project Folder, you refer to the following sample:

File structure:

enter image description here

Task Settings:

enter image description here

Note:You only need to assign to the folder node.

You could also select the folder path via ... option.

enter image description here