Nomad
Jenkins
@hashicorp
Jenkins is an open source automation server which enables developers around the world to reliably build, test, and deploy their software.
- Community
- Pack
Updated 2 years ago
- GitHub(opens in new tab)
Jenkins
This pack contains all you need to deploy jenkins (version 2 by default) in Nomad. It uses Docker driver.
Variables
job_name
(string) - The name to use as the job name which overrides using the pack name.region
(string) - The region where jobs will be deployed.datacenters
(list of strings) - A list of datacenters in the region which are eligible for task placement.plugins
(list of strings) - A list of jenkins plugins to install.jasc_config
(string) - Use the Jenkins as Code plugin to configure jenkins.namespace
(string) - The namespace where the job should be placed.constraints
(string) - Constraints to apply to the entire job.image_name
(string) - The docker image name.image_tag
(string) - The docker image tag.task_resources
(object, number number) Resources used by Jenkins taskregister_consul_service
(bool) - If you want to register a consul service for the jobconsul_service_name
(string) - The consul service name for the hello-world applicationconsul_service_tags
(list of string) - The consul service name for the hello-world applicationvolume_name
(string) - The name of the volume you want Jenkins to usevolume_type
(string) - The type of the volume you want Jenkins to usedocker_jenkins_env_vars
(map of string) - Environment variables to pass to Docker containerjenkins_vault
(list of string) - List of Vault Policies for Jenkins Taskjenkins_task_cacert
(string) - String with CA for using external SSL
Jenkins Environment Variables
You can pass the right environment variables to Jenkins.
An example of the docker_jenkins_env_vars
to use is in the vars.nomad
file.
Jenkins as Code
An example as to how the configuration-as-code
plugin can be used to create and configure jenkins is in the vars_jasc.nomad
file.