Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 2.01 KB

CONTRIBUTING.md

File metadata and controls

53 lines (32 loc) · 2.01 KB

Contributing

Want to use an application in your Stemn pipeline that isn't available here? Create an issue to request it, or submit a pull request with your own version!

Environment Variables

All containers in a Stemn pipeline are supplied the following environment variables:

STEMN_PIPELINE_EVENT

The event that caused the pipeline to be run. Can be revision, commit, or release.

STEMN_PIPELINE_ID

The id of the pipeline.

STEMN_PIPELINE_PARAMS

Any parameters passed to the container using params will be supplied as environment variables with the prefix STEMN_PIPELINE_PARAMS. For example, subject will be STEMN_PIPELINE_PARAMS_SUBJECT.

STEMN_PIPELINE_ROOT

The root directory of the pipeline data directory. Defaults to /pipeline.

STEMN_PIPELINE_TOKEN

A token for authenticating to the Stemn API as a project user. The token is valid only for the duration of the pipeline.

STEMN_PIPELINE_TMP

The directory used for storage of metadata about the pipeline (e.g. files create/changed during the pipeline). Defaults to /pipeline/.stemn.

STEMN_PIPELINE_UID_GID

The uid and gid of the user the container is executing as.

Conventions

File Patterns

All parameters used for selecting files (e.g. attachments, inputFiles, files) are processed by micromatch which provides wildcard support for selecting multiple files e.g. gear/*.stl.