[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title Oleg Nenashev updated JENKINS-50264 The fix has been released in version 0.20 Jenkins / JENKINS-50264 Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Change By: Oleg Nenashev Status: In Review Resolved Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title SCM/JIRA link daemon commented on JENKINS-50264 Re: Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Code changed in jenkins User: Oleg Nenashev Path: Jenkinsfile pom.xml src/main/resources/META-INF/hudson.remoting.ClassFilter src/test/java/CodeBuildActionTest.java http://jenkins-ci.org/commit/aws-codebuild-plugin/6f1a87ba24623a9b7bf192ca5260ec91ee87b589 Log: JENKINS-50264 - Whitelist AWS CodeBuild model objects to make the plugin compatible with Jenkins 2.102+ (#7) JENKINS-50264 - Reproduce the issue in tests JENKINS-50264 - Whitelist CodeBuild model objects so that the action can be persisted in Jenkins 2.102+ JENKINS-50264 - Update Parent POM and Jenkinsfile so that JEP-200 will be tested in CI JENKINS-50264 - Address comments from @jglick Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title Oleg Nenashev commented on JENKINS-50264 Re: Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Created https://github.com/jenkinsci/aws-codebuild-plugin/pull/7 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title Oleg Nenashev updated JENKINS-50264 Jenkins / JENKINS-50264 Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Change By: Oleg Nenashev Status: In Progress Review Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title Oleg Nenashev started work on JENKINS-50264 Change By: Oleg Nenashev Status: Open In Progress Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title Oleg Nenashev commented on JENKINS-50264 Re: Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Apparently PCT does not reproduce the issue, because there is no test doing the object's serialization. Whitelisting BuildPhase would not be enough, PhaseContext will also need to be whitelisted Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title Oleg Nenashev assigned an issue to Oleg Nenashev Jenkins / JENKINS-50264 Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Change By: Oleg Nenashev Assignee: Subin Mathew Oleg Nenashev Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title ratan r updated an issue Jenkins / JENKINS-50264 Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Change By: ratan r When "aws-codebuild" plugin is invoked from Jenkins pipeline, codebuild project on Amazon Web Services is invoked and executes successfully. Codebuild returns a message, which Jenkins cannot parse throwing an error (stack trace below)This error appears on Jenkins v 2.107 and 2. 112 111 (Two versions were tested)However On Jenkins ver. *2.100*There is no error, i.e codebuild executes successfully and the response message from Codebuild is parsed by Jenkins. *Script* _*to invoke from Pipeline.*_awsCodeBuild projectName: 'project-codebuild', buildSpecFile: 'spec.yml', buildTimeoutOverride: '', credentialsId: 'aws-creds', credentialsType: 'keys', sourceControlType: 'project', region: 'us-east-1' *Jenkins Versions:*aws-codebuild-plugin works on Jenkins ver. 2.100On Upgrading to the latest version of Jenkins (2.107 & 2. 108 111 ) , this error is thrown. CodeBuild gets invoked from Jenkins and runs successfully. Jenkins always fails at this step( invoking codebuild ) with the stack trace below. *Complete StackTrace: (StackTrace attached below as well)*java.lang.UnsupportedOperationException: *Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase 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 com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) 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.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)*Caused: java.lang.RuntimeException: Failed to serialize CodeBuildAction#phases for class CodeBuildAction* *at hudson.util.Robu*stReflectionConverter$2.writeField(RobustReflectionConverter.java:256) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224) at
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title ratan r commented on JENKINS-50264 Re: Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Jesse Glick BuildPhase is an AWS term to refer to various phases eg: "install", "pre-build" Shell scripts or any build related commands (eg: mvn clean install or $ wget ) can be added in these stages. "BuildPhase" from AWS javadocs, https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/codebuild/model/BuildPhase.html Jesse Glick Looking at the error logs and recent change long, I assumed this error is related to "JEP-200" and adding the related classes "model.BuildPhase" to the "whitelist" will suffice. Looks like, this is not the case. Please let me know, if you require any other diagnostic information to reproduce the issue. Reference: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild
Title: Message Title ratan r updated an issue Jenkins / JENKINS-50264 Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild Change By: ratan r Summary: Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild : Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild :
Title: Message Title Jesse Glick commented on JENKINS-50264 Re: Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild : Not sure what a BuildPhase is but could this be saved as a plain String instead? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild :
Title: Message Title Jesse Glick updated an issue Jenkins / JENKINS-50264 Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild : Change By: Jesse Glick Component/s: core Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-50264) Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild :
Title: Message Title ratan r created an issue Jenkins / JENKINS-50264 Refusing to marshal com.amazonaws.services.codebuild.model.BuildPhase for security reasons : AWS CodeBuild : Issue Type: Bug Assignee: Subin Mathew Attachments: jenkins-codebuild-error.txt Components: aws-codebuild-plugin, core Created: 2018-03-19 21:04 Environment: Operating System: Amazon Linux 2 os.arch amd64 os.name Linux os.version 4.9.76-38.79.amzn2.x86_64 JDK: Oracle JDK: 1.8. java.version 1.8.0_161 --- Jenkins version: 2.107 and 2.112 (Works in Jenkins ver. 2.100) Plugin version: aws-codebuild-plugin Version:0.19 - Jenkins: Noticed when upgraded to 2.107 and the latest version (2.112) -- -- Whether Jenkins is accessed through a reverse proxy: Nginx (Port redirection, from port 80 -> 8080) -- How you installed Jenkins: Jenkins master. Jenkins installed through yum repository -- Your web browser (+ version). Chrome Labels: JEP-200 Priority: Major Reporter: ratan r When