jenkins: drop legacy cleanup and update triggers
This commit is contained in:
parent
36ae49f1fc
commit
9cdf244d98
@ -49,8 +49,12 @@ data:
|
|||||||
jobs:
|
jobs:
|
||||||
- script: |
|
- script: |
|
||||||
pipelineJob('harbor-arm-build') {
|
pipelineJob('harbor-arm-build') {
|
||||||
triggers {
|
properties {
|
||||||
scm('H/5 * * * *')
|
pipelineTriggers {
|
||||||
|
triggers {
|
||||||
|
scm('H/5 * * * *')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
definition {
|
definition {
|
||||||
cpsScm {
|
cpsScm {
|
||||||
@ -83,8 +87,12 @@ data:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pipelineJob('ci-demo') {
|
pipelineJob('ci-demo') {
|
||||||
triggers {
|
properties {
|
||||||
scm('H/1 * * * *')
|
pipelineTriggers {
|
||||||
|
triggers {
|
||||||
|
scm('H/1 * * * *')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
definition {
|
definition {
|
||||||
cpsScm {
|
cpsScm {
|
||||||
@ -102,8 +110,12 @@ data:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pipelineJob('bstein-dev-home') {
|
pipelineJob('bstein-dev-home') {
|
||||||
triggers {
|
properties {
|
||||||
scm('H/2 * * * *')
|
pipelineTriggers {
|
||||||
|
triggers {
|
||||||
|
scm('H/2 * * * *')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
definition {
|
definition {
|
||||||
cpsScm {
|
cpsScm {
|
||||||
@ -121,8 +133,12 @@ data:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pipelineJob('ariadne') {
|
pipelineJob('ariadne') {
|
||||||
triggers {
|
properties {
|
||||||
scm('H/2 * * * *')
|
pipelineTriggers {
|
||||||
|
triggers {
|
||||||
|
scm('H/2 * * * *')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
definition {
|
definition {
|
||||||
cpsScm {
|
cpsScm {
|
||||||
@ -140,8 +156,12 @@ data:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pipelineJob('data-prepper') {
|
pipelineJob('data-prepper') {
|
||||||
triggers {
|
properties {
|
||||||
scm('H/5 * * * *')
|
pipelineTriggers {
|
||||||
|
triggers {
|
||||||
|
scm('H/5 * * * *')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
definition {
|
definition {
|
||||||
cpsScm {
|
cpsScm {
|
||||||
|
|||||||
@ -41,7 +41,7 @@ spec:
|
|||||||
{{ with secret "kv/data/atlas/jenkins/webhook-tokens" }}
|
{{ with secret "kv/data/atlas/jenkins/webhook-tokens" }}
|
||||||
TITAN_IAC_WEBHOOK_TOKEN={{ .Data.data.titan_iac_quality_gate }}
|
TITAN_IAC_WEBHOOK_TOKEN={{ .Data.data.titan_iac_quality_gate }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
bstein.dev/restarted-at: "2026-01-20T13:45:00Z"
|
bstein.dev/restarted-at: "2026-01-20T14:05:00Z"
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: jenkins
|
serviceAccountName: jenkins
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
|
|||||||
@ -16,7 +16,6 @@ configMapGenerator:
|
|||||||
- name: jenkins-init-scripts
|
- name: jenkins-init-scripts
|
||||||
namespace: jenkins
|
namespace: jenkins
|
||||||
files:
|
files:
|
||||||
- job_cleanup.groovy=scripts/job_cleanup.groovy
|
|
||||||
- theme.groovy=scripts/theme.groovy
|
- theme.groovy=scripts/theme.groovy
|
||||||
options:
|
options:
|
||||||
disableNameSuffixHash: true
|
disableNameSuffixHash: true
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
import jenkins.branch.MultiBranchProject
|
|
||||||
import jenkins.model.Jenkins
|
|
||||||
|
|
||||||
def jenkins = Jenkins.instance
|
|
||||||
if (jenkins == null) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
def legacy = jenkins.getItemByFullName('titan-iac-quality-gate')
|
|
||||||
if (legacy != null && !(legacy instanceof MultiBranchProject)) {
|
|
||||||
legacy.delete()
|
|
||||||
println("Deleted legacy job titan-iac-quality-gate (non-multibranch)")
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user