![]() ![]() If CVS is configured to check out the trunk, this environment variable will not be set. If you have more than one module specified, this wont be set.ĬVSBRANCH For CVS-based projects, this variable contains the branch of the module. SVNREVISION For Subversion-based projects, this variable contains the revision number of the module. When this variable is set, PATH is also updated to have JAVAHOMEbin. JAVAHOME If your job is configured to use a specific JDK, this variable is set to the JAVAHOME of the specified JDK. This is the number you see in the build executor status, except that the number starts from 0, not 1. This value is used by Jenkins CLI for example EXECUTORNUMBER The unique number that identifies the current executor (among executors of the same machine) thats carrying out this build. JENKINSURL Set to the URL of the Jenkins master thats running the build. NODENAME The name of the node the current build is running on.Ĭonvenient to put into a resource file, a jar file, etc for easier identification. ![]() The following table contains a list of all of these environment variables.Įnvironment Variable Description BUILDNUMBER The current build number, such as 153 BUILDID The current build id, such as 23-59-59 (YYYY-MM-DDhh-mm-ss, defunct since version 1.597) BUILDURL The URL where the results of this build can be found (e.g. ![]() ![]() Jenkins Set Environment Variable Jenkins sets some environment variables that are available to shell scripts, Windows batch files, Ant and Maven 1 files that are executed by Jenkins.īuilds for Non-Source Control Projects There is sometimes a need to build a project simply for demonstration purposes or access to a SVNCVS repository is unavailable.īy choosing to configure the project as None under Source Code Management you will have to: Build the Project at least once, (it will fail), but Jenkins will create the structure jenkinsworkspacePROJECTNAME Copy the project files to jenkinsworkspacePROJECTNAME Build again and configure appropriately Jenkins Set Environment Variables 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 1. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |