Nachtfeuer / jenkins-shared-library

Useful functionality for a Jenkins shared pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jenkins-shared-pipeline

Useful functionality for a Jenkins shared pipeline

Build Status Coverage Status GitHub license Documentation CodeFactor BCH compliance

Build the project

./gradlew

Build with Docker

docker build -t openjdk-1.8:1.0 .
docker run --rm -v $PWD:/mnt/host -w /mnt/host -u $(id -u):$(id -g) -it openjdk-1.8:1.0 bash -c "./gradlew"

How to run your own Jenkins

  • it's important to mount jenkins home to keep installation also the Docker container goes away
  • Use --rm to automatically remove the container. If the container is gone simply run again.
  • In my setup the initial admin password an be found at cat /work/docker/jenkins/secrets/initialAdminPassword
mkdir -p /work/docker/jenkins
docker run --rm --name=jenkins -v /work/docker/jenkins:/var/jenkins_home -p 8080:8080 -d jenkinsci/blueocean

Useful links

About

Useful functionality for a Jenkins shared pipeline

License:MIT License


Languages

Language:Groovy 99.6%Language:Dockerfile 0.4%