Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13897

EC2 Userdata not being Base64 encoded

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Trying to start up an instance with any scripting in the userdata field I get Base64Encoding errors back from AWS. Per http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html?r=8772 the UserData field needs to be base64 encoded and it's not.

        Attachments

          Activity

          Hide
          esmalling Eric Smalling added a comment -

          Testing the following fix locally: https://github.com/ericNdfw/ec2-plugin/commit/58a738b4df6009c71686ab5a3a3eef5eac6c2819

          Seems to work on our version, 1.477 - but will test latest as well to be sure and then will submit a pull request for review.

          Show
          esmalling Eric Smalling added a comment - Testing the following fix locally: https://github.com/ericNdfw/ec2-plugin/commit/58a738b4df6009c71686ab5a3a3eef5eac6c2819 Seems to work on our version, 1.477 - but will test latest as well to be sure and then will submit a pull request for review.
          Hide
          esmalling Eric Smalling added a comment -

          Correction - don't know where I got 1.477 -should have said our current version is 1.449.

          Show
          esmalling Eric Smalling added a comment - Correction - don't know where I got 1.477 -should have said our current version is 1.449.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Eric Smalling
          Path:
          src/main/java/hudson/plugins/ec2/SlaveTemplate.java
          http://jenkins-ci.org/commit/ec2-plugin/4f7987077108576985c9dd5a33a3726abd54668b
          Log:
          JENKINS-13897 EC2 Userdata not being Base64 encoded

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Eric Smalling Path: src/main/java/hudson/plugins/ec2/SlaveTemplate.java http://jenkins-ci.org/commit/ec2-plugin/4f7987077108576985c9dd5a33a3726abd54668b Log: JENKINS-13897 EC2 Userdata not being Base64 encoded
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Francis Upton
          Path:
          src/main/java/hudson/plugins/ec2/SlaveTemplate.java
          http://jenkins-ci.org/commit/ec2-plugin/35b201e0421179f2074aba85f0fc7a2a36c6b666
          Log:
          Merge pull request #19 from ericNdfw/master

          JENKINS-13897 EC2 Userdata not being Base64 encoded

          Compare: https://github.com/jenkinsci/ec2-plugin/compare/a60b548...35b201e

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Francis Upton Path: src/main/java/hudson/plugins/ec2/SlaveTemplate.java http://jenkins-ci.org/commit/ec2-plugin/35b201e0421179f2074aba85f0fc7a2a36c6b666 Log: Merge pull request #19 from ericNdfw/master JENKINS-13897 EC2 Userdata not being Base64 encoded Compare: https://github.com/jenkinsci/ec2-plugin/compare/a60b548...35b201e

            People

            • Assignee:
              esmalling Eric Smalling
              Reporter:
              esmalling Eric Smalling
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: