PROBLEM
Jenkinsfile
// timeout is in milliseconds
stage('Rollout to Stage') {
kubernetesApply(readinessTimeout: 180000, environment: envStage)
// TODO: figure out why to stash deployments?
// TODO: from where does the stash command comes?
//stash deployments
stashName = label
stash includes: '**/*.yml', name: stashName
}
Error in log
ERROR: Error during kubernetes apply: io.fabric8.kubernetes.client.KubernetesClientTimeoutException: Timed out waiting for [180000] milliseconds for multiple resources. Resources that are not ready: [Kind:Deployment Name:organization-preference Namespace:tools]
at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.waitUntilReady(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:121)
at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.waitUntilReady(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:66)
Pipeline view