Title: Message Title
Evan Reynolds created an issue
Jenkins / JENKINS-51147
Plugin Kubernetes Continuous Deploy Plugin makes input command fail
Issue Type:
Bug
Assignee:
Azure DevOps
Components:
kubernetes-cd-plugin
Created:
2018-05-05 00:20
Environment:
Jenkins 2.119 Kubernetes Continuous Deploy Plugin 0.2.1 Pipeline: Input Step 2.8 Ubuntu 16.04.4 LTS
Priority:
Minor
Reporter:
Evan Reynolds
When I run a kubernetesDeploy command, then an input command, it fails. If I comment out the Kubernetes command then the input command will succeed - and if I comment out the input command, the Kubernetes command succeeds. (THAT made this hard to figure out what was happening!) I replicated the issue using the following Jenkinsfile: #!/usr/bin/env groovy node { stage('Deploy') { kubernetesDeploy( kubeconfigId: "staging-credentials", configs: "config.yaml", dockerCredentials: [[credentialsId: 'credentialId']]) input "ask something" } } Input was originally in a different stage. And again, the input and the kubernetesDeploy command will work by themselves - but running them together will fail. This is the error: java.lang.UnsupportedOperationException: Refusing to marshal com.microsoft.jenkins.azurecommons.core.EnvironmentInjector$EnvironmentInjectionAction for security reasons; see https://jenkins.io/redirect/class-filter/ at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:543) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at