tutorialworks/pipeline-library-demo

Demonstration of using a shared library in Jenkins

Groovyjenkinsgroovypipelinejenkins-pipeline-library
This is stars and forks stats for /tutorialworks/pipeline-library-demo repository. As of 30 Apr, 2024 this repository has 84 stars and 308 forks.

pipeline-library-demo Demonstrates how to use a Shared Library in Jenkins pipelines. This repository defines a single function, sayHello, which will echo a greeting. Setup instructions In Jenkins, go to Manage Jenkins → Configure System. Under Global Pipeline Libraries, add a library with the following settings: Name: pipeline-library-demo Default version: Specify a Git reference (branch or commit SHA), e.g. master Retrieval method: Modern SCM Select the Git type Project repository: https://github.com/monodot/pipeline-library-demo.git Credentials: (leave blank) Then create a Jenkins job with the following pipeline (note that the underscore _ is not a typo): @Library('pipeline-library-demo')_ stage('Demo') { echo 'Hello World' sayHello 'Dave' } This will output the following from the build: [Pipeline] stage [Pipeline] { (Demo) [Pipeline] echo Hello world [Pipeline] echo Hello, Dave. [Pipeline] } [Pipeline] // stage [Pipeline] End of Pipeline Finished: SUCCESS
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
elastic/apm-pipeline-libraryGroovyShellPython510480
zeyangli/jenkinslibraryGroovy14402980
HujiangTechnology/gradle_plugin_android_aspectjxGroovy3.9k05590
sdkman/sdkman-cliGherkinShellGroovy5.6k+10622+1
WooBooung/BooungThingsGroovy3302500
nf-core/rnafusionNextflowGroovyPython1130770
google/mediapipeC++PythonJava23.6k+644.8k+7
liquibase/liquibaseJavaGroovyTSQL4.1k+111.7k+5
opensearch-project/OpenSearchJavaGroovyShell7.7k01.4k0
google/protobuf-gradle-pluginGroovyKotlinJava1.6k+12740