Skip to content

Commit

Permalink
feature(updatecli): Tracks node in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gounthar authored and MarkEWaite committed Jul 3, 2023
1 parent d8d49ce commit 4a162ae
Showing 1 changed file with 10 additions and 137 deletions.
147 changes: 10 additions & 137 deletions updatecli/updatecli.d/node.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Bumps the node docker images versions
name: Bumps the node docker images version

scms:
default:
Expand Down Expand Up @@ -42,53 +42,13 @@ sources:

conditions:
testNodeArg:
name: "Does the 'Hello World!' tutorial have a reference to the Node alpine image?"
name: "Does the Makefile have a reference to the Node alpine image?"
kind: file
disablesourceinput: true
spec:
file: content/doc/pipeline/tour/hello-world.adoc
file: Makefile
matchpattern: >-
.*agent.*docker.*image.*node:.*
testNodeInAgentsDocumentation:
name: "Does the 'Defining execution environments' documentation have a reference to the Node alpine image?"
kind: file
disablesourceinput: true
spec:
file: content/doc/pipeline/tour/agents.adoc
matchpattern: >-
.*docker.*image.*node:.*
testNodeInStyleGuideDocumentation:
name: "Does the 'Jenkins Documentation Style Guide' documentation have a reference to the Node alpine image?"
kind: file
disablesourceinput: true
spec:
file: STYLEGUIDE.adoc
matchpattern: >-
.*docker.*image.*node:.*
testNodeInPipelineProjectCreationTutorial:
name: "Does the 'End-to-End Multibranch Pipeline Project Creation' documentation have a reference to the Node alpine image?"
kind: file
disablesourceinput: true
spec:
file: content/doc/tutorials/build-a-multibranch-pipeline-project.adoc
matchpattern: >-
.*image.*node:.*
testNodeInBuildANodeJsAndReactAppWithNpmTutorial:
name: "Does the 'End-to-End Multibranch Pipeline Project Creation' documentation have a reference to the Node alpine image?"
kind: file
disablesourceinput: true
spec:
file: content/doc/tutorials/build-a-node-js-and-react-app-with-npm.adoc
matchpattern: >-
.*image.*node:.*
testNodeInUsingDockerWithPipelineDocumentation:
name: "Does the 'Using Docker with Pipeline' documentation have a reference to the Node alpine image?"
kind: file
disablesourceinput: true
spec:
file: content/doc/book/pipeline/docker.adoc
matchpattern: >-
.*image.*node:.*
.*docker.*run.*node:.*
testNodeAlpineImagePublished:
name: "Test node:<latest_version>-alpine<latest-version> docker image tag"
kind: dockerimage
Expand All @@ -98,110 +58,23 @@ conditions:
tag: '{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}'

targets:
updateHelloWorldTutorialNodePipeline:
name: "Update the value of the node docker image for pipelines in the 'Hello World!' tutorial"
updateMakefile:
name: "Updates the value of the node docker image in the Makefile"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/pipeline/tour/hello-world.adoc
file: Makefile
matchpattern: >-
(.*agent.*docker.*image.*\')node:(.*)(\'.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updateHelloWorldTutorialNodeScripted:
name: "Update the value of the node docker image for scripts in the 'Hello World!' tutorial"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/pipeline/tour/hello-world.adoc
matchpattern: >-
(.*docker.*image.*\')node:(.*)(\'.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updateAgentsDocumentation:
name: "Update the value of the node docker image in the 'Defining execution environments' documentation"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/pipeline/tour/agents.adoc
matchpattern: >-
(.*docker.*image.*\')node:(.*)(\'.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updateStyleGuideDocumentation:
name: "Update the value of the node docker image in the 'Jenkins Documentation Style Guide' documentation"
kind: file
sourceid: nodeLatestVersion
spec:
file: STYLEGUIDE.adoc
matchpattern: >-
(.*docker.*image.*\')node:(.*)(\'.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updatePipelineProjectCreationTutorial:
name: "Update the value of the node docker image in the 'End-to-End Multibranch Pipeline Project Creation' tutorial"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/tutorials/build-a-multibranch-pipeline-project.adoc
matchpattern: >-
(.*image.*\')node:(.*)(\'.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updateBuildANodeJsAndReactAppWithNpmTutorial:
name: "Update the value of the node docker image in the 'Build a Node.js and React app with npm' tutorial"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/tutorials/build-a-node-js-and-react-app-with-npm.adoc
matchpattern: >-
(.*image.*\')node:(.*)(\'.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updateBuildANodeJsAndReactAppWithNpmDockerHubLinkTutorial:
name: "Update the value of the node docker image in the 'Build a Node.js and React app with npm' tutorial"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/tutorials/build-a-node-js-and-react-app-with-npm.adoc
matchpattern: >-
(https.*\`)node:(.*)(\`.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updateUsingDockerWithPipelineDocumentation:
name: "Update the value of the node docker image in the 'Using Docker with Pipeline' documentation"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/book/pipeline/docker.adoc
matchpattern: >-
(.*image.*\')node:(.*)(\'.*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default
updateUsingDockerWithPipelineDocumentationDockerExample:
name: "Update the value of the node docker image in the 'Using Docker with Pipeline' documentation"
kind: file
sourceid: nodeLatestVersion
spec:
file: content/doc/book/pipeline/docker.adoc
matchpattern: >-
(FROM )node:(.*)(.*)
(.*docker.*run.*)node:.*( .*)
replacepattern: >-
${1}node:{{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}${3}
scmid: default

actions:
default:
kind: github/pullrequest
scmid: default
title: Bump node alpine docker image version to {{ source "nodeLatestVersion" }}
title: Bump node alpine docker image version to {{ source "nodeLatestVersion" }}-alpine{{ source "alpineLatestVersion" }}
spec:
labels:
- dependencies

0 comments on commit 4a162ae

Please sign in to comment.