Skip to content

Instantly share code, notes, and snippets.

@jmrozanec
Created October 25, 2018 09:40
Show Gist options
  • Save jmrozanec/a0dbe549a00b8caf8abbc8580d093bf0 to your computer and use it in GitHub Desktop.
Save jmrozanec/a0dbe549a00b8caf8abbc8580d093bf0 to your computer and use it in GitHub Desktop.
plugins:
sites:
- id: "default"
url: "https://updates.jenkins.io/update-center.json"
required:
configuration-as-code-support: latest
command-launcher: latest
jdk-tool: latest
ssh-slaves: latest
ssh-credentials: latest
ssh-agent: latest
job-dsl: latest
git: latest
chucknorris: latest
build-monitor-plugin: latest
build-timeout: latest
cloud-stats: latest
cloudbees-credentials: latest
cobertura: latest
docker-plugin: latest
email-ext: latest
github-branch-source: latest
greenballs: latest
htmlpublisher: latest
zap: latest
dependency-track: latest
pipeline-github-lib: latest
slack: latest
analysis-collector: latest
timestamper: latest
ws-cleanup: latest
xunit: latest
jenkins:
agentProtocols:
- "JNLP4-connect"
- "Ping"
authorizationStrategy:
globalMatrix:
grantedPermissions:
- "Overall/Read:anonymous"
- "Job/Read:anonymous"
- "View/Read:anonymous"
- "Overall/Administer:authenticated"
crumbIssuer: "standard"
clouds:
- docker:
containerCap: 5
dockerApi:
connectTimeout: 60
dockerHost:
uri: "tcp://127.0.0.1:2375"
readTimeout: 60
exposeDockerHost: true
name: "docker"
templates:
- connector:
ssh:
javaPath: "/usr/lib/jvm/java-8-openjdk-amd64/bin/java"
launchTimeoutSeconds: 300
retryWaitTime: 5
sshKeyStrategy:
injectSSHKey:
user: "jenkins"
dockerTemplateBase:
image: "company/jenkins-slave"
pullCredentialsId: "dockerhub"
labelString: "project-slave"
mode: EXCLUSIVE
name: "project-slave"
pullTimeout: 300
remoteFs: "/home/jenkins"
crumbIssuer:
standard:
excludeClientIPFromCrumb: false
disableRememberMe: false
labelString: "docker-builder"
mode: EXCLUSIVE
numExecutors: 1
primaryView:
all:
name: "all"
quietPeriod: 5
scmCheckoutRetryCount: 0
securityRealm:
local:
allowsSignup: true
enableCaptcha: false
users:
- id: "admin"
slaveAgentPort: -1
views:
- all:
name: "all"
- buildMonitor:
name: "monitor"
title: "monitor"
credentials:
system:
domainCredentials:
- credentials:
- usernamePassword:
description: "dockerhub"
id: "dockerhub"
password: "fake-password-hash"
scope: GLOBAL
username: "username"
- string:
scope: GLOBAL
id: slack-token
secret: 'fake-token'
description: Slack token
unclassified:
slackNotifier:
baseUrl: 'https://company.slack.com/services/hooks/jenkins-ci/'
teamDomain: 'company'
tokenCredentialId: 'slack-token'
botUser: true
room: 'jenkins'
tool:
dockertool:
installations:
- name: "docker"
properties:
- installSource:
installers:
- docker:
version: "latest"
git:
installations:
- home: "git"
name: "Default"
gradle: ""
jdk:
defaultProperties:
- installSource:
installers:
- jdkInstaller:
acceptLicense: false
jobs:
- script:
- file: ./jobs-scripts/pipeline.groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment