更新 'cloud/Jenkinsfile'

master
newrain001 4 weeks ago
parent 815624b383
commit 69bcde97e3
  1. 18
      cloud/Jenkinsfile

18
cloud/Jenkinsfile vendored

@ -37,9 +37,6 @@ pipeline {
- mountPath: "/etc/localtime"
name: "volume-2"
readOnly: false
- name: workspace-volume
mountPath: "/home/jenkins/agent"
readOnly: false
- name: maven
image: registry.cn-hangzhou.aliyuncs.com/newrain857/maven:3.6.3-jdk-11
command: ['cat']
@ -47,17 +44,11 @@ pipeline {
volumeMount:
- mountPath: "/root/.m2"
name: "maven-data"
- name: workspace-volume
mountPath: "/home/jenkins/agent"
readOnly: false
- name: nodejs
image: node:14
command: ['cat']
tty: true
volumeMount:
- name: workspace-volume
mountPath: "/home/jenkins/agent"
readOnly: false
- name: kubectl
image: registry.cn-hangzhou.aliyuncs.com/newrain857/kubectl:v1.22.0
imagePullPolicy: IfNotPresent
@ -74,9 +65,6 @@ pipeline {
subPath: config
name: "kubeconfig"
readOnly: false
- name: workspace-volume
mountPath: "/home/jenkins/agent"
readOnly: false
- name: docker
image: registry.cn-hangzhou.aliyuncs.com/newrain857/docker:24.0.0-git
command: ['cat']
@ -85,9 +73,6 @@ pipeline {
- mountPath: "/var/run/docker.sock"
name: "volume-docker"
readOnly: false
- name: workspace-volume
mountPath: "/home/jenkins/agent"
readOnly: false
volumes:
- name: volume-2
hostPath:
@ -107,9 +92,6 @@ pipeline {
- name: maven-data
hostPath:
path: "/mnt/nfs-data/m2"
- name: workspace-volume
hostPath:
path: /mnt/nfs-data/jenkins-workspace
"""
}
}

Loading…
Cancel
Save