edgeXSetupEnvironment
Overview
Shared library to setup a build environment given a Map of key value pairs. Some extra environment variables are set to help with the build process including:
GIT_BRANCHGIT_COMMITGIT_BRANCH_CLEANSHORT_GIT_COMMITSEMVER_BRANCHSEMVER_PRE_PREFIX
Parameters
| Name | Required | Type | Description and Default Value |
|---|---|---|---|
| vars | false | str | A Map of key/value pairs to expose to the Jenkins environment. |
Usage
edgeXSetupEnvironment([ PROJECT: 'edgex-global-pipelines' ])
...
...
// This will expose an environment variable named `PROJECT` with the value `edgex-global-pipelines`
// as well as the extra environment vars mentioned above.