Skip to content

Instantly share code, notes, and snippets.

@devent
Created March 28, 2022 12:40
Show Gist options
  • Save devent/895973134052bb45365f88200d66ba24 to your computer and use it in GitHub Desktop.
Save devent/895973134052bb45365f88200d66ba24 to your computer and use it in GitHub Desktop.
credentials:
system:
domainCredentials:
- credentials:
- basicSSHUserPrivateKey:
id: "com.anrisoftware.globalpom"
passphrase: "xx"
privateKeySource:
directEntry:
privateKey: "xx"
scope: GLOBAL
username: "git"
- usernamePassword:
id: "jenkins"
password: "xx"
scope: GLOBAL
username: "jenkins"
- credentials:
- basicSSHUserPrivateKey:
id: "com.anrisoftware.globalpom1"
passphrase: "xx"
privateKeySource:
directEntry:
privateKey: "xx"
scope: GLOBAL
username: "git"
domain:
name: "gitea.anrisoftware.com"
specifications:
- hostnameSpecification:
includes: "gitea.anrisoftware.com"
jenkins:
agentProtocols:
- "JNLP4-connect"
- "Ping"
authorizationStrategy:
roleBased:
roles:
global:
- assignments:
- "nohpophee6zohvai"
- "Administrators"
name: "admin"
pattern: ".*"
permissions:
- "Job/Move"
- "Job/Build"
- "Lockable Resources/View"
- "Credentials/Delete"
- "Credentials/ManageDomains"
- "Lockable Resources/Unlock"
- "View/Create"
- "Agent/Configure"
- "Job/Read"
- "Credentials/Update"
- "Agent/Create"
- "Job/Delete"
- "Agent/Build"
- "View/Configure"
- "Metrics/HealthCheck"
- "Lockable Resources/Reserve"
- "Agent/Provision"
- "Metrics/ThreadDump"
- "SCM/Tag"
- "Job/Create"
- "Job/Discover"
- "Credentials/View"
- "Agent/Connect"
- "Agent/Delete"
- "Run/Replay"
- "Agent/Disconnect"
- "Run/Delete"
- "Job/Cancel"
- "Overall/Read"
- "Run/Update"
- "Credentials/Create"
- "Overall/Administer"
- "View/Delete"
- "Job/Configure"
- "Lockable Resources/Steal"
- "Metrics/View"
- "Job/Workspace"
- "View/Read"
- assignments:
- "JenkinsTrusted"
name: "trusted"
pattern: ".*"
permissions:
- "Job/Move"
- "Job/Build"
- "Lockable Resources/View"
- "Credentials/Delete"
- "Credentials/ManageDomains"
- "Lockable Resources/Unlock"
- "View/Create"
- "Agent/Configure"
- "Job/Read"
- "Credentials/Update"
- "Agent/Create"
- "Job/Delete"
- "Agent/Build"
- "View/Configure"
- "Metrics/HealthCheck"
- "Lockable Resources/Reserve"
- "Agent/Provision"
- "Metrics/ThreadDump"
- "SCM/Tag"
- "Job/Create"
- "Job/Discover"
- "Credentials/View"
- "Agent/Connect"
- "Agent/Delete"
- "Run/Replay"
- "Agent/Disconnect"
- "Run/Delete"
- "Job/Cancel"
- "Overall/Read"
- "Run/Update"
- "Credentials/Create"
- "View/Delete"
- "Job/Configure"
- "Lockable Resources/Steal"
- "Metrics/View"
- "Job/Workspace"
- "View/Read"
- assignments:
- "anonymous"
name: "visitor"
pattern: ".*"
permissions:
- "Overall/Read"
- "Job/Read"
clouds:
- kubernetes:
containerCap: 10
containerCapStr: "10"
jenkinsTunnel: "jenkins-agent:50000"
jenkinsUrl: "http://jenkins.anrisoftware-com-jenkins:80"
name: "kubernetes"
namespace: "anrisoftware-com-jenkins"
retentionTimeout: 500
serverCertificate: |
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
serverUrl: "https://kubernetes.default"
templates:
- containers:
- args: "-workDir /home/jenkins/workspace ^${computer.jnlpmac} ^${computer.name}"
image: "jenkins/jnlp-slave:4.9-1-jdk11"
livenessProbe:
failureThreshold: 0
initialDelaySeconds: 0
periodSeconds: 0
successThreshold: 0
timeoutSeconds: 0
name: "jnlp"
ttyEnabled: true
workingDir: "/home/jenkins/agent"
- args: "cat"
command: "/bin/sh -c"
image: "maven:3.8.4-openjdk-17"
livenessProbe:
failureThreshold: 0
initialDelaySeconds: 0
periodSeconds: 0
successThreshold: 0
timeoutSeconds: 0
name: "maven"
ttyEnabled: true
workingDir: "/home/jenkins/agent"
envVars:
- envVar:
key: "JENKINS_URL"
value: "http://jenkins.anrisoftware-com-jenkins:80"
id: "11fe5ef6-c02a-4520-9324-16dcff68d6db"
label: "maven-3-jdk-17"
name: "maven-3-jdk-17"
namespace: "anrisoftware-com-jenkins"
volumes:
- persistentVolumeClaim:
claimName: "jenkins-work"
mountPath: "/home/jenkins/workspace"
readOnly: false
workspaceVolume:
persistentVolumeClaimWorkspaceVolume:
claimName: "jenkins-work"
readOnly: false
yamlMergeStrategy: "override"
crumbIssuer:
standard:
excludeClientIPFromCrumb: true
disableRememberMe: false
labelAtoms:
- name: "built-in"
- name: "maven-3-jdk-17"
markupFormatter: "plainText"
mode: NORMAL
myViewsTabBar: "standard"
numExecutors: 2
primaryView:
all:
name: "all"
projectNamingStrategy: "standard"
quietPeriod: 5
remotingSecurity:
enabled: true
scmCheckoutRetryCount: 0
securityRealm:
ldap:
configurations:
- displayNameAttributeName: "uid"
groupMembershipStrategy:
fromUserRecord:
attributeName: "memberOf"
groupSearchBase: "ou=People"
groupSearchFilter: "(&(objectClass=jenkinsUser)(memberOf=cn=Jenkins,ou=group,dc=muellerpublic,dc=de)(|(uid={0})(cn={0})))"
inhibitInferRootDN: false
managerDN: "cn=admin,dc=muellerpublic,dc=de"
managerPasswordSecret: "xxx"
rootDN: "dc=muellerpublic,dc=de"
server: "openldap.kube-ldap.svc.cluster.local:1389"
userSearch: "(&(objectClass=inetOrgPerson)(memberOf=cn=Jenkins,ou=Group,dc=muellerpublic,dc=de)(|(uid={0})(cn={0})))"
userSearchBase: "ou=People"
disableMailAddressResolver: false
disableRolePrefixing: true
groupIdStrategy: "caseInsensitive"
userIdStrategy: "caseInsensitive"
slaveAgentPort: -1
updateCenter:
sites:
- id: "default"
url: "https://updates.jenkins.io/update-center.json"
views:
- all:
name: "all"
viewsTabBar: "standard"
globalCredentialsConfiguration:
configuration:
providerFilter: "none"
typeFilter: "none"
security:
apiToken:
creationOfLegacyTokenEnabled: false
tokenGenerationOnCreationEnabled: false
usageStatisticsEnabled: true
sSHD:
port: -1
unclassified:
buildDiscarders:
configuredBuildDiscarders:
- "jobBuildDiscarder"
buildStepOperation:
enabled: false
email-ext:
adminRequiredForTemplateTesting: false
allowUnregisteredEnabled: false
charset: "UTF-8"
debugMode: false
defaultBody: |-
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
Check console output at $BUILD_URL to view the results.
defaultContentType: "text/plain"
defaultSubject: "$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!"
defaultTriggerIds:
- "hudson.plugins.emailext.plugins.trigger.FailureTrigger"
maxAttachmentSize: -1
maxAttachmentSizeMb: -1
precedenceBulk: false
watchingEnabled: false
fingerprints:
fingerprintCleanupDisabled: false
storage: "file"
gitHubConfiguration:
apiRateLimitChecker: ThrottleForNormalize
gitHubPluginConfig:
hookUrl: "https://jenkins.anrisoftware.com/github-webhook/"
gitSCM:
addGitTagAction: false
allowSecondFetch: false
createAccountBasedOnEmail: false
disableGitToolChooser: false
hideCredentials: false
showEntireCommitSummaryInChanges: false
useExistingAccountWithSameEmail: false
giteaServers:
servers:
- displayName: "gitea.anrisoftware.com"
manageHooks: false
serverUrl: "https://gitea.anrisoftware.com"
junitTestResultStorage:
storage: "file"
location:
adminAddress: "user@example.com"
url: "https://jenkins.anrisoftware.com/"
mailer:
charset: "UTF-8"
useSsl: false
useTls: false
pollSCM:
pollingThreadCount: 10
subversionSCM:
workspaceFormat: 8
timestamper:
allPipelines: false
elapsedTimeFormat: "'<b>'HH:mm:ss.S'</b> '"
systemTimeFormat: "'<b>'HH:mm:ss'</b> '"
tool:
git:
installations:
- home: "git"
name: "Default"
mavenGlobalConfig:
globalSettingsProvider: "standard"
settingsProvider: "standard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment