I have a Web Extension for a Azure DevOps Server. I want to process external Files, generated by a Task inside a Buildpipeline, with that Extension. Is there a way to upload or provide these Files to the Extension?
Is there a common Way to do that?
I have a Web Extension for a Azure DevOps Server. I want to process external Files, generated by a Task inside a Buildpipeline, with that Extension. Is there a way to upload or provide these Files to the Extension?
Is there a common Way to do that?
I am afraid there is not a common way to upload files from build pipeline to web extension.
Using js to invoke a ps1 file might do the trick. write some scripts in ps1 file to read the external file.
In this way the external file can be passed to your web extension through the ps1 script.
var spawn = require("child_process").spawn;
var child = spawn("powershell.exe",["D:\\ProjectLabs\\LeviMicProject\\VSS\\script.ps1"]);
child.stdout.on("data",function(data){
// "you can deal with the data passed from ps1 here"
});
child.stderr.on("data",function(data){
console.log("Powershell Errors: " + data);
});
child.on("exit",function(){
console.log("Powershell Script finished");
});