Class EC2Tag

All Implemented Interfaces:
Describable<EC2Tag>

public class EC2Tag extends AbstractDescribableImpl<EC2Tag>
  • Field Details

    • TAG_NAME_JENKINS_SLAVE_TYPE

      public static final String TAG_NAME_JENKINS_SLAVE_TYPE
      Tag name for the specific jenkins agent type tag, used to identify the EC2 instances provisioned by this plugin.
      See Also:
    • TAG_NAME_JENKINS_SERVER_URL

      public static final String TAG_NAME_JENKINS_SERVER_URL
      See Also:
    • TAG_NAME_JENKINS_CLOUD_NAME

      public static final String TAG_NAME_JENKINS_CLOUD_NAME
      See Also:
    • TAG_NAME_JENKINS_AGENT_CONNECTED

      public static final String TAG_NAME_JENKINS_AGENT_CONNECTED
      Written the first time an agent comes online on an instance, and never removed.

      This is what separates an instance that has served an agent from one that has only ever been launched. The distinction matters because the two kinds of orphan are not alike: an instance whose agent came and went may have run a build already and, where agents are single-use, be on its way down, whereas one that never connected is simply capacity that was paid for and never claimed.

      See Also:
    • TAG_NAME_JENKINS_AGENT_ATTEMPTED

      public static final String TAG_NAME_JENKINS_AGENT_ATTEMPTED
      Written when Jenkins gave up on an agent that never came online.

      Such an instance never connected, so without this it reads as capacity nobody has touched and stays adoptable no matter what the template says about re-using instances. A request would then take it back, fail to raise an agent on it again, and go on doing so, meeting demand with an instance that has already proved it cannot serve it.

      See Also:
  • Constructor Details

    • EC2Tag

      @DataBoundConstructor public EC2Tag(String name, String value)
    • EC2Tag

      public EC2Tag(software.amazon.awssdk.services.ec2.model.Tag t)
  • Method Details

    • getName

      public String getName()
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • fromAmazonTags

      public static List<EC2Tag> fromAmazonTags(List<software.amazon.awssdk.services.ec2.model.Tag> amazonTags)