Shell Jenkins job reading text from file with variables
Shell Jenkins job reading text from file with variables I am implementing Jenkins job in bash shell script. Jenkins jobs is using the variable AS_OF_DATE which can be used as input for users. AS_OF_DATE I also have some files on zone with text that I grep during the execution of this jenkins job. So user will start the jobs and given parameters is: AS_OF_DATE: "20180331" AS_OF_DATE: "20180331" Then during the job I grep some text from test.txt file. test.txt TEXT_FROM_FILE="This is my text, where i used ${AS_OF_DATE}" And when I do the echo of $TEXT_FROM_FILE , variable $AS_OF_DATE is not changed with the date that user added. $TEXT_FROM_FILE $AS_OF_DATE My outcome is: "This is my text, where i used ${AS_OF_DATE}" What it should be: "This is my text, where i used 20180331" "This is my text, where i used 20180331" I assume that I am not declaring the variable inside the file correctly, so my question is hot to correctly spe...