@@ -184,11 +184,12 @@ The GKE Build Step has the following parameters:
184184
1851851. ` credentialsId(string)` : The ID of the credentials that you uploaded earlier.
1861861. ` projectId(string)` : The Project ID housing the GKE cluster to be published to.
187- 1. ` zone(string)` : [** Deprecated** ] The Zone housing the GKE cluster to be published to.
1881871. ` location(string)` : The Zone or Region housing the GKE cluster to be published to.
1891881. ` clusterName(string)` : The name of the Cluster to be published to.
189+ 1. ` namespace(string)` : The namespace Kubernetes objects are deployed to.
1901901. ` manifestPattern(string)` : The file pattern of the Kubernetes manifest to be deployed.
191- 1. ` verifyDeployments(boolean)` : [Optional] Whether the plugin will verify deployments.
191+ 1. ` verifyDeployments(boolean)` : [Optional] Whether the plugin will verify deployments. Default is ` true` .
192+ 1. ` verifyTimeoutInMinutes(integer)` : [Optional] Time in minutes to wait for deployments to verify. Default is 5 minutes.
192193
193194# ### Jenkins Web UI
194195
@@ -215,6 +216,7 @@ pipeline {
215216 PROJECT_ID = ' < YOUR_PROJECT_ID> '
216217 CLUSTER_NAME = ' < YOUR_CLUSTER_NAME> '
217218 LOCATION = ' < YOUR_CLUSTER_LOCATION> '
219+ NAMESPACE = ' < YOUR_KUBERNETES_NAMESPACE> '
218220 CREDENTIALS_ID = ' < YOUR_CREDENTIAS_ID> '
219221 }
220222 stages {
@@ -226,8 +228,10 @@ pipeline {
226228 clusterName: env.CLUSTER_NAME,
227229 location: env.LOCATION,
228230 manifestPattern: ' manifest.yaml' ,
231+ namespace: env.NAMESPACE,
229232 credentialsId: env.CREDENTIALS_ID,
230- verifyDeployments: true])
233+ verifyDeployments: true,
234+ verifyTimeoutInMinutes: 5])
231235 }
232236 }
233237 }
0 commit comments