Shared functionality for Jenkins Pipeline Groovy scripts.
Included by the Pipeline Shared Groovy Libraries Plugin
Documentation: https://jenkins.io/doc/book/pipeline/shared-libraries/
Adds a link(to another job) for a specific build from the build history of a jenkins job. See it's documentation
Source: vars/addDeployLinks.groovy
Cleans up the build history of the jenkins job. It can differentiate deployments to specific environments. See it's documentation
Source: vars/cleanBuilds.groovy
This function can be used as a template for deploying a component on a specifc environment. There is no actual implementation of a deployment but a placeholder with an echo output. See it's documentation
Source: vars/deployChangedComponents.groovy
Ensures that the given executable is available on the current Jenkins agent, installing it with a Jenkins tool installer if necessary.
Returns the customized configuration per contents of a kustomization.yaml as a string.
Requests OpenShift to apply the given configuration and waits for the rollout to be finished.
Compares the OpenShift configuration/resources given in the configuration argument against the resources in an OpenShift project.
Processes an OpenShift template to get the final configuration. Use the output with openshiftApply to apply the configuration against your project.
Requests OpenShift to start build from the specified build config and waits for the build to be finished.
Runs the OWASP dependency-check tool.
Substitutes variables in a provided String with secrets retrieved from HashiCorp Vault.
This function tracks information about the current deployment state of a component on a specific environment. See it's documentation
Source: vars/trackComponentVersions.groovy
Unlocks the Git repository in the current directory with git-crypt
for the duration of the scope of the
step and locks it again afterwards.
This class was implemented to read and delete Docker Images by tag names.
File: src/com/puzzleitc/jenkins/DockerHub.groovy
Tests can be executed with ./gradlew clean test
Documentation for the test framework can be found here: https://github.com/ExpediaGroup/jenkins-spock Source: src/com/puzzleitc/jenkins/DockerHub.groovy