azure-devops-utils/jenkins
Mickaël Mottet 0ef03e153d
Fix wrong Jenkins repositories keys (#89)
Fix the repositories public keys url for Jenkins (see https://pkg.jenkins.io/debian-stable/ and https://pkg.jenkins.io/debian/ )
2020-09-24 11:27:46 +08:00
..
blue-green Refactor the K8s configurations out and pipeline to make it more like real world project 2017-12-15 17:01:38 +08:00
jenkins-on-azure Add 101-jenkins quickstart template script & 'Jenkins On Azure' landing page + updated install_jenkins to also add the reverse proxy 2017-04-13 09:53:16 -07:00
README.md Clean up running Jenkins CLI command 2017-05-01 10:15:14 -07:00
add-aptly-build-job.sh Update deploy script for some issues (#88) 2019-06-28 17:08:31 +08:00
add-docker-build-job.sh Propogate exit code of child script 2017-05-03 11:39:52 -07:00
basic-aptly-build-job.xml Use ${env.BUILD_NUMBER} for the release version (#47) 2017-06-02 10:35:35 -07:00
basic-docker-build-job.xml Small cosmetic changes 2017-03-09 08:29:24 -08:00
basic-docker-build.groovy Moved the groovy script in jenkins folder 2017-02-28 13:07:45 -08:00
basic-user-pwd-credentials.xml Add Jenkins related scripts and files for automatically deploying a docker build job 2017-02-27 13:45:58 -08:00
init-aptly-repo.sh Fix VM extension script for spinnaker and Jenkins setup (#80) 2019-05-14 10:27:59 +08:00
install_jenkins.sh Fix wrong Jenkins repositories keys (#89) 2020-09-24 11:27:46 +08:00
jenkins-verified-ver Update jenkins-verified-ver 2017-12-11 16:53:12 +08:00
run-cli-command.sh Fix the retry bug. 2017-11-30 17:34:39 +08:00
unsecure-jenkins-instance.sh Add a new script that disables the security of a Jenkins instance 2017-03-10 09:27:18 -08:00

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