Git Product home page Git Product logo

ec2-start-stop's Introduction

๐Ÿ“–

A Jenkins plugin used on https://scala-ci.typesafe.com to start and stop EC2 instances on demand.

Differs from the ec2-plugin, which creates and deletes instances based on AMIs.

๐Ÿš’

After updating all (other) Jenkins plugins (Jan 23, 2023), this plugin stopped working, the Jenkins node log showed "Socket not created by this factory".

A google search brought me to this StackOverflow, suggesting to try updating dependencies. After attempting to update individual dependencies first, I finally updated everything, which luckily worked.

๐Ÿšง

To build the plugin

  • Switch to Java 11
  • Allow external HTTP repos in maven by creating a file ~/.m2/settings.xml with the following content:
    <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
        <mirrors>
              <mirror>
                  <id>maven-default-http-blocker</id>
                  <mirrorOf>dummy</mirrorOf>
                  <name>Dummy mirror to override default blocking mirror that blocks http</name>
                  <url>http://0.0.0.0/</url>
            </mirror>
        </mirrors>
    </settings>
    
  • Build the plugin by running mvn install -Dspotbugs.skip=true
  • Upload the target/ec2-start-stop.hpi file to a GitHub release
  • Copy the hpi file URL and use it in https://scala-ci.typesafe.com/manage/pluginManager/advanced to install ("deploy") the new version, restart Jenkins

๐Ÿคจ

  • Not sure where credentials are picked up.
  • Didn't figure out how to enable verbose logging for the AWS client library - that would be useful when things don't work.

ec2-start-stop's People

Contributors

adriaanm avatar lrytz avatar justinpihony avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.