-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: separated updatecli pipeline #606
Closed
lemeurherve
wants to merge
13
commits into
jenkins-infra:main
from
lemeurherve:helpdesk2778-separate-updatecli-pipeline
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5d99903
chore: separated updatecli pipeline
lemeurherveCB a381970
Merge branch 'main' into helpdesk2778-separate-updatecli-pipeline
lemeurherve 77eb24d
add missing pod template
lemeurherveCB 8d59413
add updatecli manifest for the pod template
lemeurherveCB 0da4570
fails the pipeline if the updatecli apply fails
lemeurherveCB c7f5091
Revert "Revert "feat(azure/arm): enable arm64 azure build"" (#608
lemeurherve 8d375c4
feat: add Launchable (#605)
lemeurherve 5608f8e
Bump the `aws` CLI version to 2.11.13 (#603)
jenkins-infra-updatecli[bot] 45ae481
Bump pwsh version to 7.3.4 (#602)
jenkins-infra-updatecli[bot] fb15b79
Bump the `updatecli` CLI version to 0.49.1 (#610)
jenkins-infra-updatecli[bot] 3591386
chore(updatecli) fix python manifest (#612)
dduportal c402c18
update
lemeurherveCB cfad217
test with helmfile image
lemeurherveCB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
def cronExpr = env.BRANCH_IS_PRIMARY ? 'H/30 * * * *' : '' | ||
|
||
pipeline { | ||
agent { | ||
docker { image 'jenkinsciinfra/helmfile:2.5.92' } | ||
} | ||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '10')) | ||
timeout(time: 30, unit: 'MINUTES') | ||
disableConcurrentBuilds() | ||
} | ||
|
||
triggers { | ||
cron (cronExpr) | ||
} | ||
|
||
stages { | ||
stage('Check Configuration Update') { | ||
// Run updatecli's diff on both push and pull requests (in case a configuration change breaks updatecli) | ||
steps { | ||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { | ||
updatecli(action: 'diff', cronTriggerExpression: cronExpr) | ||
} | ||
} | ||
} // stage | ||
stage('Apply Configuration Update') { | ||
when { | ||
expression { env.BRANCH_IS_PRIMARY } | ||
} | ||
steps { | ||
updatecli(action: 'apply', cronTriggerExpression: cronExpr) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: "v1" | ||
kind: "Pod" | ||
metadata: | ||
labels: | ||
jenkins: "agent" | ||
job: "helmfile" | ||
spec: | ||
nodeSelector: | ||
kubernetes.azure.com/agentpool: infracipool | ||
kubernetes.io/os: linux | ||
tolerations: | ||
- key: "os" | ||
operator: "Equal" | ||
value: "linux" | ||
effect: "NoSchedule" | ||
- key: "spot" | ||
operator: "Equal" | ||
value: "true" | ||
effect: "NoSchedule" | ||
- key: "jenkins" | ||
operator: "Equal" | ||
value: "infra.ci.jenkins.io" | ||
effect: "NoSchedule" | ||
- key: "kubernetes.azure.com/scalesetpriority" | ||
operator: "Equal" | ||
value: "spot" | ||
effect: "NoSchedule" | ||
containers: | ||
- image: "jenkinsciinfra/helmfile:2.5.92" | ||
imagePullPolicy: "IfNotPresent" | ||
name: "jnlp" | ||
resources: | ||
limits: | ||
memory: "1024Mi" | ||
cpu: "2" | ||
requests: | ||
memory: "256Mi" | ||
cpu: "0.5" | ||
securityContext: | ||
privileged: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
name: Bump launchable version | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastReleaseVersion: | ||
kind: githubrelease | ||
name: Get the latest launchable release version | ||
spec: | ||
owner: "launchableinc" | ||
repository: "cli" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
versionfilter: | ||
kind: semver | ||
transformers: | ||
- trimprefix: v | ||
|
||
targets: | ||
updateVersion: | ||
name: "Update the launchable version in the provision-env.yml file" | ||
sourceid: lastReleaseVersion | ||
kind: yaml | ||
spec: | ||
file: "provisioning/tools-versions.yml" | ||
key: "launchable_version" | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
title: Bump launchable version to {{ source "lastReleaseVersion" }} | ||
scmid: default | ||
spec: | ||
labels: | ||
- enhancement | ||
- launchable |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This updatecli process requires a Docker Engine, which means it requires a VM.