/
jenkins-agent-nodejs-16-template.yaml
68 lines (67 loc) · 2.02 KB
/
jenkins-agent-nodejs-16-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: jenkins-agent-nodejs-16
annotations:
description: This template deploys a Jenkins agent to build Node.js v16.x based projects, through npm and npx v8.x
iconClass: icon-jenkins
openshift.io/display-name: Jenkins Agent Node.js (v16.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-16
labels:
app: jenkins-agent-nodejs-16
component: jenkins-agent
part-of: jenkins-agent-nodejs
template: jenkins-agent-nodejs-16
parameters:
- name: NEXUS_AUTH
value: ""
- name: NEXUS_URL
value: ""
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: jenkins-agent-nodejs-16
spec:
dockerImageRepository: jenkins-agent-nodejs-16
lookupPolicy:
local: true
- apiVersion: v1
kind: BuildConfig
metadata:
name: jenkins-agent-nodejs-16
spec:
failedBuildsHistoryLimit: 5
output:
to:
kind: ImageStreamTag
name: jenkins-agent-nodejs-16:latest
source:
git:
ref: v2.1.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: 16.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-16`.
It can be referenced in a `Jenkinsfile` with `<NAMESPACE>/jenkins-agent-nodejs-16:latest`.