Copy echo ">>>> project Build Start!!"
./gradlew build
echo ">> pwd"
pwd
echo ">> go jar"
cd ./build/libs
JAR_NAME = $( ls | grep '0.0.1' | tail -n 1 )
echo "jar name $JAR_NAME"
Copy Started by user cheol
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/test
The recommended git tool is: NONE
No credentials specified
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/test/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/thor/jenkins-test # timeout=10
Fetching upstream changes from https://github.com/thor/jenkins-test
> git --version # timeout=10
> git --version # 'git version 2.25.1'
> git fetch --tags --force --progress -- https://github.com/thor/jenkins-test +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 991e78dc134f5c929ba51a8ef56f69fa3088c2c7 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 991e78dc134f5c929ba51a8ef56f69fa3088c2c7 # timeout=10
Commit message: "test"
> git rev-list --no-walk 991e78dc134f5c929ba51a8ef56f69fa3088c2c7 # timeout=10
[test] $ /bin/sh -xe /tmp/jenkins7079479207332199031.sh
+ echo >>>> project Build Start!!
>>>> project Build Start!!
+ ./gradlew build
Starting a Gradle Daemon (subsequent builds will be faster )
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :bootJarMainClassName UP-TO-DATE
> Task :bootJar UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :assemble UP-TO-DATE
> Task :compileTestJava UP-TO-DATE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test UP-TO-DATE
> Task :check UP-TO-DATE
> Task :build UP-TO-DATE
BUILD SUCCESSFUL in 5s
7 actionable tasks: 7 up-to-date
+ echo >> pwd
>> pwd
+ pwd
/var/lib/jenkins/workspace/test
+ echo >> go jar
>> go jar
+ cd ./build/libs
+ ls
+ grep 0.0.1
+ tail -n 1
+ JAR_NAME=jenkins-0.0.1-SNAPSHOT.jar
+ echo jar name jenkins-0.0.1-SNAPSHOT.jar
jar name jenkins-0.0.1-SNAPSHOT.jar
Finished: SUCCESS