Skip to content

[JENKINS-72622] EC2 plugin cannot add a new cloud #16344

@jenkins-infra-bot

Description

@jenkins-infra-bot
  1. I created an EC2 instance and subsequently generated an Amazon Machine Image (AMI) from this instance.
  1. I added the EC2 plugin to Jenkins to use this AMI. In the "New Cloud" section, I filled in the following fields:
    • Name
    • Amazon EC2 credentials
    • Region
    • EC2 Key Pair's Private Key
      Upon testing the connection, I received a success response. I then proceeded to the "Add AMI" section.
  1. In the "Add AMI" section, I filled in the following fields:
    • Description
    • AMI ID
    • Instance Type (T2XLarge)
    • Security group names
    • Remote FS root
    • Remote user
    • AMI Type
    • Labels
      I selected "Usage = Only build jobs with label expressions matching this node," and filled in Subnet IDs for VPC and Tags. I also checked "Associate Public IP" and chose "Private IP" as the Connection Strategy.
  1. When I clicked the "Save" button, I encountered an error message on my screen: "A problem occurred." Upon reviewing the system logs, I identified the error as follows:
    • java.lang.NullPointerException at jenkins.agents.CloudSet.doDoCreate
  1. I am using the following versions:
    • Jenkins: 2.414.1
    • Amazon EC2 plugin: Version1648.vf3d852e00486
    • Amazon Web Services SDK :: EC2: Version1.12.633-430.vf9a_e567a_244f
    • Amazon Web Services SDK :: Minimal: Version1.12.633-430.vf9a_e567a_244f
    • Pipeline: Step API: Version639.v6eca_cd8c04a_a_
    • Apache HttpComponents Client 4.x API: Version4.5.14-208.v438351942757
    • AWS Credentials: Version218.v1b_e9466ec5da_
    • Bouncycastle API: Version2.29
    • Command Agent Launcher: Version107.v773860566e2e
    • Credentials: Version1311.vcf0a_900b_37c2
    • Node Iterator API: Version49.v58a_8b_35f8363
    • SSH Credentials: Version308.ve4497b_ccd8f4
    • Trilead API: Version2.84.v72119de229b_7

Could you please assist me in identifying what might be missing or causing this issue? Any guidance or support would be greatly appreciated.


Originally reported by sberfdalar, imported from: EC2 plugin cannot add a new cloud
  • assignee: allan_burdajewicz
  • status: Closed
  • priority: Major
  • component(s): core, ec2-plugin
  • label(s): 2.452.2-fixed, ec2, jenkins, plugin
  • resolution: Fixed
  • resolved: 2024-05-21T14:13:26+00:00
  • votes: 4
  • watchers: 7
  • imported: 2025-11-24
Raw content of original issue
  1. I created an EC2 instance and subsequently generated an Amazon Machine Image (AMI) from this instance.
  1. I added the EC2 plugin to Jenkins to use this AMI. In the "New Cloud" section, I filled in the following fields:
    • Name
    • Amazon EC2 credentials
    • Region
    • EC2 Key Pair's Private Key Upon testing the connection, I received a success response. I then proceeded to the "Add AMI" section.
  1. In the "Add AMI" section, I filled in the following fields:
    • Description
    • AMI ID
    • Instance Type (T2XLarge)
    • Security group names
    • Remote FS root
    • Remote user
    • AMI Type
    • Labels I selected "Usage = Only build jobs with label expressions matching this node," and filled in Subnet IDs for VPC and Tags. I also checked "Associate Public IP" and chose "Private IP" as the Connection Strategy.
  1. When I clicked the "Save" button, I encountered an error message on my screen: "A problem occurred." Upon reviewing the system logs, I identified the error as follows:
    • java.lang.NullPointerException at jenkins.agents.CloudSet.doDoCreate
  1. I am using the following versions:
    • Jenkins: 2.414.1
    • Amazon EC2 plugin: Version1648.vf3d852e00486
    • Amazon Web Services SDK :: EC2: Version1.12.633-430.vf9a_e567a_244f
    • Amazon Web Services SDK :: Minimal: Version1.12.633-430.vf9a_e567a_244f
    • Pipeline: Step API: Version639.v6eca_cd8c04a_a_
    • Apache HttpComponents Client 4.x API: Version4.5.14-208.v438351942757
    • AWS Credentials: Version218.v1b_e9466ec5da_
    • Bouncycastle API: Version2.29
    • Command Agent Launcher: Version107.v773860566e2e
    • Credentials: Version1311.vcf0a_900b_37c2
    • Node Iterator API: Version49.v58a_8b_35f8363
    • SSH Credentials: Version308.ve4497b_ccd8f4
    • Trilead API: Version2.84.v72119de229b_7

Could you please assist me in identifying what might be missing or causing this issue? Any guidance or support would be greatly appreciated.

3 attachments

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions