From 31d6dff5edb150fbeb1d0ddb3a42f4464ab09ae6 Mon Sep 17 00:00:00 2001 From: Simon Golms Date: Mon, 20 Jun 2022 09:15:44 +0200 Subject: [PATCH] feat: add nodejs v18 template --- README.md | 12 +++-- jenkins-agent-nodejs-18-template.yaml | 68 +++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 jenkins-agent-nodejs-18-template.yaml diff --git a/README.md b/README.md index 054ac21..3d9f572 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ This Jenkins agent is used to build Node.js based projects, thru `npm` and `npx` ### Features -1. Node.js v16.x | lts | current -2. npm v8.x | latest +1. Node.js `v16.x` | `v18.x` | `lts` | `current` +2. npm `v8.x` | `latest` 3. (optional) Nexus configuration ### Usage @@ -59,6 +59,8 @@ odsComponentPipeline( ```sh # v16.x oc process -f https://raw.githubusercontent.com/SimonGolms/ods-jenkins-agent-nodejs/main/jenkins-agent-nodejs-16-template.yaml | oc create -f - +# v18.x +oc process -f https://raw.githubusercontent.com/SimonGolms/ods-jenkins-agent-nodejs/main/jenkins-agent-nodejs-18-template.yaml | oc create -f - # lts oc process -f https://raw.githubusercontent.com/SimonGolms/ods-jenkins-agent-nodejs/main/jenkins-agent-nodejs-lts-template.yaml | oc create -f - # current @@ -88,6 +90,8 @@ In case of a new version of Node.js or npm is released, run the following comman ```sh # v16.x oc start-build jenkins-agent-nodejs-16 --follow +# v18.x +oc start-build jenkins-agent-nodejs-18 --follow # lts oc start-build jenkins-agent-nodejs-lts --follow # current @@ -112,11 +116,13 @@ Go to your Build Configs - + The image is built in your active namespace and is named `jenkins-agent-nodejs-18`. + + It can be referenced in a `Jenkinsfile` with `/jenkins-agent-nodejs-18:latest`.