更新 'cloud/Jenkinsfile'

master
newrain001 4 weeks ago
parent 80a9004027
commit 815624b383
  1. 27
      cloud/Jenkinsfile

27
cloud/Jenkinsfile vendored

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

Loading…
Cancel
Save