0

I have a task in an agent job on Azure DevOps that runs an inline bash script. Part of what it does is to read the content of a file and assign it to a variable:

filecontent=$(<artifact/drop/myfile.txt)

I want to make this task part of a task group, however when I create a task group from the task it is identifying $(<artifact/drop/myfile.txt) as a variable and automatically adding it to the list of variables for the task group.

enter image description here

Is there a way round this?

1 Answer 1

2

Set the variable as follows:

filecontent=`cat artifact/drop/myfile.txt`
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.