I am working on a pipeline to deploy a container image to kubernetes cluster on GCP.
I get a very long error message without a lot of detail as to what the issue is. This is a small piece of message from console output:
stage('Deploying to Kubernetes')
{
steps {
script {
kubernetesDeploy(configs: ‘deployment.yml’, ‘service.yml’)
}
}
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: c73bf02e-d54b-4f0c-96db-582cb66a5a0c
java.lang.NoSuchMethodError: No such DSL method ‘kubernetesDeploy’ found among steps [ansibleAdhoc, ansiblePlaybook, ansibleVault, approveReceivedEvent, approveRequestedEvent, archive, bat, build, catchError, checkout, container, containerLog, createEvent, deleteDir, dir, dockerFingerprintFrom, dockerFingerprintRun, echo, emailext, emailextrecipients, envVarsForTool, error, fileExists, findBuildScans, getContext, git, input, isUnix, junit, kubernetesApply, library, libraryResource, load, mail, milestone, node, parallel, podTemplate, powershell, properties, publishChecks, pwd, pwsh, readFile, readTrusted, resolveScm, retry, script, sh, sleep, stage, stash, step, timeout, timestamps, tm, tool, unarchive, unstable, unstash, validateDeclarativePipeline, waitForBuild,
Have all Kubernetes plugins installed
user24738117 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.