Shared Library
The AS-jenkins-shared repository contains common code that can be used in any pipeline.
Usage
This repository is intended to be used by declarative pipelines.
You will need to declare that you are using the library at the top of your pipeline. Jenkins will load the entire lib and make all of its functions available. For example:
<<< @/assets/sample-secret-pipeline.groovy
Functions
These are the major pieces of shared functionality.
Function | Purpose | Requirements |
---|---|---|
publishSecretsToSSM | Implements secret management strategy | Terraform module has parameters output |
parseJson | Parse JSON & return it in a serializable format | None |
publishSecretsToVapor | Implements secret management strategy for Laravel Vapor | .env.{deploy-env} file has VAPOR_SECRETS= list |
publishSecretsToSecretsManager | Implements secret management strategy | Terraform module has secrets output |