Shared Library

The AS-jenkins-sharedopen in new window 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.

FunctionPurposeRequirements
publishSecretsToSSMopen in new windowImplements secret management strategyTerraform module has parameters output
parseJsonopen in new windowParse JSON & return it in a serializable formatNone
publishSecretsToVaporopen in new windowImplements secret management strategy for Laravel Vapor.env.{deploy-env} file has VAPOR_SECRETS= list
publishSecretsToSecretsManageropen in new windowImplements secret management strategyTerraform module has secrets output