-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1df9aed
commit 31d6dff
Showing
2 changed files
with
77 additions
and
3 deletions.
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,68 @@ | ||
apiVersion: template.openshift.io/v1 | ||
kind: Template | ||
metadata: | ||
name: jenkins-agent-nodejs-18 | ||
annotations: | ||
description: This template deploys a Jenkins agent to build Node.js v18.x based projects, through npm and npx v8.x | ||
iconClass: icon-jenkins | ||
openshift.io/display-name: Jenkins Agent Node.js (v18.x) | ||
openshift.io/documentation-url: https://github.com/simongolms/ods-jenkins-agent-nodejs | ||
openshift.io/provider-display-name: Simon Golms | ||
openshift.io/support-url: https://github.com/simongolms/ods-jenkins-agent-nodejs | ||
tags: "jenkins,agent,nodejs" | ||
labels: | ||
template: jenkins-agent-nodejs-18 | ||
labels: | ||
app: jenkins-agent-nodejs-18 | ||
component: jenkins-agent | ||
part-of: jenkins-agent-nodejs | ||
template: jenkins-agent-nodejs-18 | ||
parameters: | ||
- name: NEXUS_AUTH | ||
value: "" | ||
- name: NEXUS_URL | ||
value: "" | ||
objects: | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
name: jenkins-agent-nodejs-18 | ||
spec: | ||
dockerImageRepository: jenkins-agent-nodejs-18 | ||
lookupPolicy: | ||
local: true | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: jenkins-agent-nodejs-18 | ||
spec: | ||
failedBuildsHistoryLimit: 5 | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: jenkins-agent-nodejs-18:latest | ||
source: | ||
git: | ||
ref: v2.0.0 | ||
uri: https://github.com/simongolms/ods-jenkins-agent-nodejs.git | ||
type: Git | ||
strategy: | ||
dockerStrategy: | ||
buildArgs: | ||
- name: NEXUS_AUTH | ||
value: ${NEXUS_AUTH} | ||
- name: NEXUS_URL | ||
value: ${NEXUS_URL} | ||
- name: NODEJS_VERSION | ||
value: 18.x | ||
- name: NPM_VERSION | ||
value: 8.x | ||
dockerfilePath: Dockerfile | ||
type: Docker | ||
successfulBuildsHistoryLimit: 5 | ||
triggers: | ||
- type: "ConfigChange" | ||
message: >- | ||
The image is built in your active namespace and is named `jenkins-agent-nodejs-18`. | ||
It can be referenced in a `Jenkinsfile` with `<NAMESPACE>/jenkins-agent-nodejs-18:latest`. |