Technical assistance on how shall I run a jar file in VM through Azure pipeline

Viewed 18

There is a release pipeline configured which includes the task to execute batch script. Batch script copies jar files into a VM machine but fails to run it on Virtual Machine .

Need help in trying out ways how can we run jar file through Azure pipeline in Virtual Machine

Batch Script :

::copy newly deployed jars in latest folder
cd ..
xcopy *{file path}*.jar *{new file path location}*

::run new *{file name}* jar
cd *{new file path}*
start "*{name}*" java -jar *{file name}*.jar
0 Answers
Related