jenkins-config/jenkins.yml

104 lines
2.5 KiB
YAML
Raw Normal View History

2024-09-28 04:03:12 -04:00
jenkins:
2024-09-28 05:36:58 -04:00
systemMessage: "Scheme Jenkins"
2024-09-28 04:03:12 -04:00
numExecutors: 0
nodes:
- permanent:
mode: NORMAL
name: "agent1"
labelString: "docker"
numExecutors: 8
remoteFS: "/home/jenkins/agent"
launcher:
SSHLauncher:
host: "jenkins-agent"
port: 22
credentialsId: agent_ssh
launchTimeoutSeconds: 60
maxNumRetries: 3
retryWaitTime: 30
sshHostKeyVerificationStrategy:
manuallyTrustedKeyVerificationStrategy:
requireInitialManualTrust: false
authorizationStrategy:
projectMatrix:
entries:
- group:
name: "authenticated"
permissions:
- "Job/Read"
- "Overall/Read"
- user:
name: "admin"
permissions:
- "Overall/Administer"
- user:
name: "anonymous"
permissions:
- "Job/Read"
- "Overall/Read"
securityRealm:
local:
allowsSignup: false
users:
- id: admin
name: admin
password: "${readFile:/secrets/adminpassword}"
appearance:
pipelineGraphView:
showGraphOnBuildPage: true
showGraphOnJobPage: true
credentials:
system:
domainCredentials:
- credentials:
- basicSSHUserPrivateKey:
scope: GLOBAL
id: agent_ssh
username: "jenkins"
description: "SSH key for jenkins agent"
privateKeySource:
directEntry:
privateKey: "${readFile:/secrets/id_rsa}"
jobs:
- script: >
folder('index_scheme_org') {
displayName: 'index.scheme.org'
}
- script: >
multibranchPipelineJob('index_scheme_org/build') {
displayName: 'Build and deploy'
branchSources {
git {
id('github')
remote('https://github.com/schemeorg-community/index.scheme.org')
}
}
orphanedItemStrategy {
discardOldItems {
numToKeep(10)
}
}
}
2024-09-28 08:02:59 -04:00
- script: >
folder('srfi_explorations') {
displayName: 'srfi-explorations'
}
- script: >
multibranchPipelineJob('srfi_explorations/build') {
displayName: 'R7RS-SRFI'
branchSources {
git {
id('github')
2024-09-28 08:17:22 -04:00
remote('https://github.com/srfi-explorations/r7rs-srfi.git')
2024-09-28 08:02:59 -04:00
}
}
orphanedItemStrategy {
discardOldItems {
numToKeep(10)
}
}
}