When a Jenkins job executes, it sets some environment variables that you may use in your shell script, batch command, Ant script or Maven POM. Environment Variable Description BUILD_NUMBER The current build number, such as "153" BUILD_ID The current build id, such as "2005-08-22_23-59-59" (YYYY-MM-DD_hh-mm-ss, defunct since version 1.597) BUILD_URL The URL where the results of this build … Continue reading Jenkins Environment Variables
Day: March 9, 2018
gradle
[root@localhost ~]# wget https://services.gradle.org/distributions/gradle-4.6-bin.zip [root@localhost ~]# mkdir /opt/gradle [root@localhost ~]# unzip -d /opt/gradle/ gradle-4.6-bin.zip [root@localhost ~]# export PATH=$PATH:/opt/gradle/gradle-4.6/bin/ [root@localhost ~]# printenv |grep gradle PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/gradle/gradle-4.6/bin/ [root@localhost ~]# gradle -v ------------------------------------------------------------ Gradle 4.6 ------------------------------------------------------------ Build time: 2018-02-28 13:36:36 UTC Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c Groovy: 2.4.12 Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017 JVM: 1.8.0_161 (Oracle Corporation … Continue reading gradle
