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

Reuse stopped EC2 instance,speed up maven build

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • ec2-plugin
    • None

      This plugin is a great plugin. But after using it down to find a problem: 
      I could not re-enable the stopped EC2 agent, but had to create a new instance.
      As for why I need to re-use a stopped EC2 agent, it's because my maven project will download a lot of packages when I build it, and I don't want to repeat the download every time, which will increase my build time.  

      If it could reuse the previous instance, then it wouldn't have to re-download these dependencies

          [JENKINS-71445] Reuse stopped EC2 instance,speed up maven build

          I have the same Problem. I configured "stopOnTerminate: true" and the instance is stopped after the idle timeout.

          But when i try to start the agent again, it tries to connect via ssh, but in aws ec2 the instance remains stopped.

          Sebastian Opel added a comment - I have the same Problem. I configured "stopOnTerminate: true" and the instance is stopped after the idle timeout. But when i try to start the agent again, it tries to connect via ssh, but in aws ec2 the instance remains stopped.

          Sorry, my problem was, that i set the wrong availabily zone. i configured "eu-central-1" instead of "eu-central-1a".

          So with a single subnet configured it works.

          Sebastian Opel added a comment - Sorry, my problem was, that i set the wrong availabily zone. i configured "eu-central-1" instead of "eu-central-1a". So with a single subnet configured it works.

            thoulen FABRIZIO MANFREDI
            alliot Alliot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: