diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2018-08-27 12:33:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-27 12:33:51 -0400 |
commit | da5182bc4e7ecf1ac7b520bace3915013741ab38 (patch) | |
tree | f3e4711fd338a75808804a83208a07ef00a3c2b8 /README.md | |
parent | 5a2e5e56db491b55acdaefc1a8b8b5867d90e6e8 (diff) | |
download | jscu_refactor-da5182bc4e7ecf1ac7b520bace3915013741ab38.tar.gz |
Generalize for use within regression test jobs (#14)1.2.2
* Install conda if it's not present during build.
* Purge workspace within node def, and only on first node processed.
* install dir uses workspace base
* Prevent multiple conda installer downloads in a shared environment.
* Update doc
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,6 @@ Functionality provided that extends the native Groovy syntax approach This library's functionality is automatically made available to every Jenkinsfile hosted in the spacetelescope Github organization. - An example job that builds three parallel combinations and runs tests on one of them. ```groovy @@ -79,6 +78,7 @@ It has the following members: | `conda_packages` | list of strings | no | If this list is defined, the associated build job will create a temporary conda environment to host the job which contains the packages specified. Package specifications are of the form <ul><li> `<package_name>` </li><li> `<package_name>=<version>` </li></ul> Example: `bc0.conda_packages = ["pytest", "requests", "numpy=1.14.3"]` | | `conda_override_channels` | boolean | no | Instructs the conda environment creation process to not implicitly prepend the anaconda defaults channel to the list of channels used. This allows the priority of channels to be used for environment creation to be specified exactly in the order of channels provided in the `conda_channels` list, described below. If `conda_packages` is not defined in the Jenkinsfile this property is ignored. | | `conda_channels` | list of strings | no | The list of channels, in order of search priority, to use when retrieving packages for installation. If `conda_override_channels` is not defined, this list will have the conda `defaults` channel implicitly prepended to it at installation time. If `conda_packages` is not defined in the Jenkinsfile this property is ignored. Example: `bc0.conda_channels = ["http://ssb.stsci.edu/astroconda"]` | + | `conda_ver` | string | no | The version of conda to use when creating environments to host the build. If not supplied, the latest available version of conda will be obtained. NOTE: This may chage from build to build, depending on the state of conda releases. | | `env_vars` | list of strings | no | Allow configuration of the shell environment in which build and test commands are run. Noteworthy behaviors: <ul><li> Relative path characters such as `.` and '..' are honored with respect to the isolated build WORKSPACE directory into which the source repository is cloned and the build job takes place. </li><li> Shell variables appearing with `$` are dereferenced to their value by the bash shell responsible for hosting the job's activities. The variable name to dereference must exist at the time the environment is created on each parallel node. I.e. variables can appear in the definition of other variables later in the list (the list is processed in order.) </li><li> Strings provided in single quotes preclude the need to escape the `$` characters when referencing environment variables. Double quotes require the `$` to be escaped with a `\`. </li></ul> | | `build_cmds` | list of strings | yes | These commands are run in their order of appearance in this list with the default shell environment and any modifications to that environment provided by the `env_vars` list described above. <ul><li> Varables defined in the Jenkinsfile script itself may appear in these commands via `${varname}` notation and are interpolated at script execution time. </li><li> These command are executed BEFORE any optional `test_cmds`. </li></ul> | | `test_cmds` | list of strings | no | These commands are run in their order of appearance in this list with the default shell environment plus any modifications to that environment provided by the `env_vars` list described above. <ul><li> If this list is not set for a build configuration, no test commands are run and no test report is generated. </li><li> If present, these commands are executed AFTER the build_cmds. </li></ul> | |