|
|
@ -1,6 +1,5 @@ |
|
|
|
pipeline { |
|
|
|
pipeline { |
|
|
|
environment { |
|
|
|
environment { |
|
|
|
KUBERNETES_NAME = "kubernetes" |
|
|
|
|
|
|
|
DOCKER_REPOSITORY_CREDENTIAL_ID = "ea3d4aae-783b-460f-9cd0-931c53c021db" |
|
|
|
DOCKER_REPOSITORY_CREDENTIAL_ID = "ea3d4aae-783b-460f-9cd0-931c53c021db" |
|
|
|
HARBOR_HOST = "http://192.168.75.149:30002" |
|
|
|
HARBOR_HOST = "http://192.168.75.149:30002" |
|
|
|
NAMESPACE_NAME = "library" |
|
|
|
NAMESPACE_NAME = "library" |
|
|
@ -9,7 +8,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
agent { |
|
|
|
agent { |
|
|
|
kubernetes { |
|
|
|
kubernetes { |
|
|
|
cloud "${env.KUBERNETES_NAME}" |
|
|
|
cloud "kubernetes" |
|
|
|
yaml """ |
|
|
|
yaml """ |
|
|
|
apiVersion: v1 |
|
|
|
apiVersion: v1 |
|
|
|
kind: Pod |
|
|
|
kind: Pod |
|
|
|