forked from atinc/ngx-tethys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
25 lines (23 loc) · 886 Bytes
/
Jenkinsfile
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
def label = "worker-${UUID.randomUUID().toString()}"
podTemplate(label: label, cloud: 'kubernetes',
containers: [
containerTemplate(name: 'wtctl', image: 'registry.cn-beijing.aliyuncs.com/worktile/wtctl:latest', alwaysPullImage: true, ttyEnabled: true, command: 'cat',resourceLimitCpu: '300m')
],
volumes: [
hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock'),
hostPathVolume(mountPath: '/root/.npm', hostPath: '/data/cache/.npm'),
hostPathVolume(mountPath: '/tmp/cache', hostPath: '/data/cache/wt-ngx-tethys')
]
) {
node(label) {
def scmVars = checkout scm
def commit = scmVars.GIT_COMMIT
def branch = scmVars.GIT_BRANCH
stage('Using Worktile Pipeline') {
container('wtctl') {
sh "wtctl"
//
}
}
}
}