Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
blue-green Refactor the K8s configurations out and pipeline to make it more like… Dec 15, 2017
jenkins-on-azure Add 101-jenkins quickstart template script & 'Jenkins On Azure' landi… Apr 13, 2017
README.md Clean up running Jenkins CLI command May 1, 2017
add-aptly-build-job.sh
add-docker-build-job.sh
basic-aptly-build-job.xml
basic-docker-build-job.xml Small cosmetic changes Mar 9, 2017
basic-docker-build.groovy
basic-user-pwd-credentials.xml Add Jenkins related scripts and files for automatically deploying a d… Feb 27, 2017
init-aptly-repo.sh
install_jenkins.sh Fix the jenkins install script. Jun 11, 2018
jenkins-verified-ver
run-cli-command.sh Fix the retry bug. Nov 30, 2017
unsecure-jenkins-instance.sh Add a new script that disables the security of a Jenkins instance Mar 10, 2017

README.md

Jenkins groovy script to build and push a Docker container

basic-docker-build.groovy

Sample Jenkins pipeline that clones a git repository, builds the docker container defined in the Docker file and pushes that container to a private container registry. The Jenkins Job that uses this groovy script must have these parameters defined:

Jenkins job parameters Description
git_repo A public git repository that has a Dockerfile
docker_repository The container repository
registry_url The Docker private container registry url
registry_credentials_id The Jenkins credentials id that stores the user name and password for the Docker private container registry

Add a Docker Build job in an existing Jenkins instance

add-docker-build-job.sh

Bash script that adds a Docker Build job in an existing Jenkins instance. The created job will use the basic-docker-build.groovy script.

Disable security for a Jenkins instance

unsecure-jenkins-instance.sh

Bash script that disables the security of a Jenkins instance.

If you accidentally set up security realm / authorization in such a way that you may no longer able to reconfigure Jenkins you can use this script to disable security.

Don't make your instance publicly available when running this script! Anyone can access your unsecure Jenkins instance! For more informations see the Jenkins documentation

Install Jenkins

install_jenkins.sh Bash script that installs Jenkins on a Linux VM and exposes it to the public through port 80 (login and cli are disabled).

Install Jenkins plugins

run-cli-command.sh Bash script that runs a Jenkins cli command.

Questions/Comments? azdevopspub@microsoft.com

You can’t perform that action at this time.