/
jenkins-agent-nodejs-current-template.yaml
68 lines (67 loc) · 2.1 KB
/
jenkins-agent-nodejs-current-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-current
annotations:
description: This template deploys a Jenkins agent to build Node.js based projects with the current version and latest version of npm and npx
iconClass: icon-jenkins
openshift.io/display-name: Jenkins Agent Node.js (Current)
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-current
labels:
app: jenkins-agent-nodejs-current
component: jenkins-agent
part-of: jenkins-agent-nodejs
template: jenkins-agent-nodejs-current
parameters:
- name: NEXUS_AUTH
value: ""
- name: NEXUS_URL
value: ""
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: jenkins-agent-nodejs-current
spec:
dockerImageRepository: jenkins-agent-nodejs-current
lookupPolicy:
local: true
- apiVersion: v1
kind: BuildConfig
metadata:
name: jenkins-agent-nodejs-current
spec:
failedBuildsHistoryLimit: 5
output:
to:
kind: ImageStreamTag
name: jenkins-agent-nodejs-current: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: current.x
- name: NPM_VERSION
value: latest
dockerfilePath: Dockerfile
type: Docker
successfulBuildsHistoryLimit: 5
triggers:
- type: "ConfigChange"
message: >-
The image is built in your active namespace and is named `jenkins-agent-nodejs-current`.
It can be referenced in a `Jenkinsfile` with `<NAMESPACE>/jenkins-agent-nodejs-current:latest`.