You need to use "add cloud" in jenkins configuration

On Wed, Mar 14, 2018, 06:38 Prasanna Ranganathan <[email protected]>
wrote:

> Hi,
>
> I was trying the kubernetes plugin. I installed and configured the
> kubernetes setup connection test was successfull.
> and tried the below code.
>
> def label = "mypod-${UUID.randomUUID().toString()}"echo "Label:" +
> labelpodTemplate(label: label) { node(label) { stage('Run shell') { sh 'echo
> hello world' } }}
>
> But still, i do get this error.
>
> [Pipeline] podTemplate[Pipeline] // podTemplate[Pipeline] End of 
> PipelineERROR: Cloud does not exist: kubernetes
> Finished: FAILURE
>
>
>
> even if i give cloud variable as something still it says cloud does not
> exist
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/998c5cbc-3de7-4131-b77f-fdd949a71477%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/998c5cbc-3de7-4131-b77f-fdd949a71477%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6P2X-rofsHdOWLj9zYXSO5Zg1oUMkP9JTCuCpLu8dCciA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to