I'm Jenkins down code, the code cloud has the following problems in the process of start
Why sprinboot start (after - jar command), springboot log and no output to the console, Jenkins directly exit then build success
But there is no up springboot, also don't know start details,
Below is Jenkins configuration script and order:
1. The first step in the script
Set the port=8100
For/f "tokens=1 to 5" % % I in (' netstat - ano ^ | findstr searches ": the port % % '") do (
Taskkill/pid % % m/f
The exit/b
)
second maven:
The clean
Package
the third script:
CD C: \ Windows \ System32 \ config \ systemprofile \ AppData \ Local \ Jenkins \. Jenkins \ workspace \ myFirstTask \ target \
The set BUILD_ID=dontKillMe
Start the Java jar demo - 0.0.1 - the SNAPSHOT. Jar
the console output:
[myFirstTask] $CMD/c call c: \ WINDOWS \ TEMP \ jenkins8018308150512767005 bat
C: \ WINDOWS \ system32 \ config \ systemprofile \ AppData \ Local \ Jenkins \. Jenkins \ workspace \ myFirstTask> CD C: \ Windows \ System32 \ config \ systemprofile \ AppData \ Local \ Jenkins \. Jenkins \ workspace \ myFirstTask \ target \
C: \ Windows \ System32 \ config \ systemprofile \ AppData \ Local \ Jenkins \. Jenkins \ workspace \ myFirstTask \ target> The set BUILD_ID=dontKillMe
C: \ Windows \ System32 \ config \ systemprofile \ AppData \ Local \ Jenkins \. Jenkins \ workspace \ myFirstTask \ target> Start the Java jar demo - 0.0.1 - the SNAPSHOT. Jar
C: \ Windows \ System32 \ config \ systemprofile \ AppData \ Local \ Jenkins \. Jenkins \ workspace \ myFirstTask \ target> The exit 0
The Process leaked file descriptors. See https://jenkins.io/redirect/troubleshooting/process-leaked-file-descriptors for more information
Finished: SUCCESS