diff --git a/services/jenkins/helmrelease.yaml b/services/jenkins/helmrelease.yaml index 44d9846..d750b15 100644 --- a/services/jenkins/helmrelease.yaml +++ b/services/jenkins/helmrelease.yaml @@ -128,6 +128,46 @@ spec: } catch (Exception e) { println("Failed to configure OIDC realm: ${e}") } + JCasC: + configScripts: + creds.yaml: | + credentials: + system: + domainCredentials: + - credentials: + - usernamePassword: + scope: GLOBAL + id: gitea-pat + username: "bstein" + password: "4693a39ee3f0ebb58e7d1795ab98add6df44ef12" + description: "Gitea PAT for harbor-arm-build" + - usernamePassword: + scope: GLOBAL + id: harbor-robot + username: "robot$infra+robotuser-pipeline" + password: "ouuvMheoTxOQtFSbWnO1OKVujORMPfO7" + description: "Harbor robot for pipeline push" + jobs.yaml: | + jobs: + - script: | + pipelineJob('harbor-arm-build') { + definition { + cpsScm { + scm { + git { + remote { + url('https://scm.bstein.dev/bstein/harbor-arm-build.git') + credentials('gitea-pat') + } + branches('*/master') + } + } + } + } + triggers { + scm('H/5 * * * *') + } + } persistence: enabled: true storageClass: astreae