Skip to content

Accessing Files present in ${System.DefaultWorkingDirectory} from external node script - Build Pipeline #1131

Answered by Imran109
Imran109 asked this question in Q&A
Discussion options

You must be logged in to vote

Actually I figured out the issue

It was having the final output file as outputfile: '$(System.DefaultWorkingDirectory)\inline.html'
And I changed it to outputfile: '$(System.DefaultWorkingDirectory)/inline.html'

Below is the final working script

const html = fs.readFileSync(path.resolve(__dirname, './inline.html'),'utf8');

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Imran109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment