Giter Club home page Giter Club logo

jenkins-pipeline-shared-libraries's Introduction

jenkins-pipeline-shared-libraries

Shared functionality for Jenkins Pipeline Groovy scripts.

Included by the Pipeline Shared Groovy Libraries Plugin

Documentation: https://jenkins.io/doc/book/pipeline/shared-libraries/

global variables

addDeployLinks

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

cleanBuilds

Cleans up the build history of the jenkins job. It can differentiate deployments to specific environments. See it's documentation

Source: vars/cleanBuilds.groovy

deployChangedComponents

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

executable

Ensures that the given executable is available on the current Jenkins agent, installing it with a Jenkins tool installer if necessary.

kustomize

Returns the customized configuration per contents of a kustomization.yaml as a string.

openshiftApply

Requests OpenShift to apply the given configuration and waits for the rollout to be finished.

openshiftDiff

Compares the OpenShift configuration/resources given in the configuration argument against the resources in an OpenShift project.

openshiftProcess

Processes an OpenShift template to get the final configuration. Use the output with openshiftApply to apply the configuration against your project.

openshiftStartBuild

Requests OpenShift to start build from the specified build config and waits for the build to be finished.

owaspDependencyCheck

Runs the OWASP dependency-check tool.

replaceFromVault

Substitutes variables in a provided String with secrets retrieved from HashiCorp Vault.

trackComponentVersions

This function tracks information about the current deployment state of a component on a specific environment. See it's documentation

Source: vars/trackComponentVersions.groovy

withGitCrypt

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.

Groovy source files

DockerHub

This class was implemented to read and delete Docker Images by tag names.

File: src/com/puzzleitc/jenkins/DockerHub.groovy

Testing

Unit tests

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

jenkins-pipeline-shared-libraries's People

Contributors

dbruegger avatar chrira avatar dtschan avatar franbuehler avatar buehlmann avatar retgal avatar sylivankenobi avatar elbaer avatar carlbalmer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.