|
|
|
@ -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 { |
|
|
|
|