Skip to content

Andrew1988123123/jenkins-libraries

Repository files navigation

Setting up Jenkins Shared Library

Navigate to Manage Jenkins -> Configure System and configure the Global Pipeline Libraries

Create a pipeline job

  • Create a pipeline job and set the script path: vars/my-first-pipeline.groovy

Launch Jenkins in a docker container

docker run -d \
        --name jenkins -p 8080:8080 -u root -p 50000:50000 \
        -v /var/run/docker.sock:/var/run/docker.sock \
        naturalett/jenkins:jenkins-libraries

Get the initial password for Jenkins

docker exec jenkins bash -c -- 'cat /var/jenkins_home/secrets/initialAdminPassword'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published