This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"aws_access_key": "{{vault `packer/aws_access_key_id` `key`}}", | |
"aws_secret_key": "{{vault `packer/aws_secret_access_key` `key`}}", | |
"aws_region": "{{vault `packer/aws_region` `key`}}", | |
"vault_token": "{{env `VAULT_TOKEN`}}" | |
}, | |
"builders": [{ | |
"access_key": "{{ user `aws_access_key` }}", | |
"secret_key": "{{ user `aws_secret_key` }}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkins/jenkins:2.215 | |
ENV CASC_JENKINS_CONFIG /jenkins_configs | |
USER root | |
# Install additional packages | |
RUN apt update && \ | |
apt install -y python3 python3-pip && \ | |
pip3 install awscli jenkins-job-builder jjb-reactive-choice-param --no-cache-dir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkins.instance.pluginManager.plugins.each{ | |
plugin -> | |
println ("${plugin.getShortName()}:${plugin.getVersion()}") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
jenkins: | |
build: . | |
container_name: jenkins | |
restart: always | |
ports: | |
- "50000:50000" | |
- "8080:8080" | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
credentials: | |
system: | |
domainCredentials: | |
- credentials: | |
- usernamePassword: | |
description: "AWS credentials" | |
id: "aws-creds" | |
password: ${AWS_SECRET_ACCESS_KEY} | |
scope: GLOBAL | |
username: ${AWS_ACCESS_KEY_ID} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jenkins: | |
authorizationStrategy: | |
projectMatrix: | |
permissions: | |
- "Overall/Administer:steve.a@example.org" | |
- "Credentials/View:john.d@example.org" | |
... | |
clouds: | |
- amazonEC2: | |
cloudName: "AWS" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── config.ini | |
├── jobs | |
│ ├── Job1.yaml | |
│ | ... | |
│ └── Job2.yaml | |
└── scripts | |
├── job1.sh | |
| ... | |
└── job2.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- job: | |
name: Job1 | |
project-type: freestyle | |
auth-token: mytoken | |
disabled: false | |
concurrent: false | |
node: jenkins_agent | |
triggers: | |
- timed: '0 3 * * *' | |
builders: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat config.ini | |
[job_builder] | |
ignore_cache=True | |
exclude=jobs/Job2 | |
[jenkins] | |
url=https://jenkins.example.org | |
user=some_user | |
password=some_password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2.1 | |
jobs: | |
my-job: | |
docker: | |
- image: cimg/base:2020.01 | |
steps: | |
- run: | |
name: Debug envs | |
command: | |
OlderNewer