I have a simple question. I want to run a bat file that should run post build. The bat file takes in to parameters previousVersion and currentVersion (These parameters are
Create file name jenkins.bat and place this file where your jenkins.war file is available.
You have to click jenkins.bat file.
Note :- After click on jenkins.bat file, chrome browser will automatically open with jenkins url.
Try this If your system configured with Java 8 or 7 Installation.
timeout 3
start chrome http://localhost:8080
timeout 3
java -jar jenkins.war
Try this If your system configured with Java 10 or above Installation.
timeout 3
start chrome http://localhost:8080
timeout 3
java -jar jenkins.war --enable-future-java