更新 'Jenkinsfile'

main
newrain001 11 months ago
parent 3e36a74daa
commit 1b995c0fa4
  1. 16
      Jenkinsfile

16
Jenkinsfile vendored

@ -1,4 +1,12 @@
pipeline {
environment {
KUBERNETES_NAME = "kubernetes"
DOCKER_REPOSITORY_CREDENTIAL_ID = "ea3d4aae-783b-460f-9cd0-931c53c021db"
HARBOR_HOST = "http://192.168.75.149:30002"
NAMESPACE_NAME = "library"
REPOSITORY_NAME = "my-web-app"
TAG = "v1.0"
}
agent {
kubernetes {
cloud "${env.KUBERNETES_NAME}"
@ -33,14 +41,6 @@ spec:
"""
}
}
environment {
KUBERNETES_NAME = "kubernetes"
DOCKER_REPOSITORY_CREDENTIAL_ID = "ea3d4aae-783b-460f-9cd0-931c53c021db"
HARBOR_HOST = "http://192.168.75.149:30002"
NAMESPACE_NAME = "library"
REPOSITORY_NAME = "my-web-app"
TAG = "v1.0"
}
stages {
stage('构建镜像') {
steps {

Loading…
Cancel
Save