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

Google always assign Public IP

    XMLWordPrintable

Details

    Description

      GoogleComputeEngineTemplateOptions.assignExternalIp defualt is true.
      Disable "Assign Public IP" in the UI does not remove the option

      My suggestion add to the code in JCloudsSlaveTemplate.java line 544

      options.as(GoogleComputeEngineTemplateOptions.class).assignExternalIp(assignPublicIp);

      if (options instanceof GoogleComputeEngineTemplateOptions) {
      {{ // Always use our own credentials and let creation fail}}
      {{ // if no keys are provided.}}
      {{ options.as(GoogleComputeEngineTemplateOptions.class).autoCreateKeyPair(false);}}
      {{ options.as(GoogleComputeEngineTemplateOptions.class).preemptible(isPreemptible);}}
      {{ options.as(GoogleComputeEngineTemplateOptions.class).assignExternalIp(assignPublicIp);}}
      }

       

      Attachments

        Activity

          felfert Fritz Elfert added a comment - - edited

          Committed to master. Please try this build and report back if this solves the issue.

          felfert Fritz Elfert added a comment - - edited Committed to master. Please try this build and report back if this solves the issue.
          jonathane Jonathan E added a comment -

          Thanks, Works great.

          jonathane Jonathan E added a comment - Thanks, Works great.
          jonathane Jonathan E added a comment -

          We are going to use widely this plugin with the cloud feature.
          Is there a forum or any place I discuss it with others? limitation, bugs, etc. 

          jonathane Jonathan E added a comment - We are going to use widely this plugin with the cloud feature. Is there a forum or any place I discuss it with others? limitation, bugs, etc. 
          felfert Fritz Elfert added a comment -

          There is a generic mailing-list for users of jenkins. See: https://www.jenkins.io/mailing-lists/

          felfert Fritz Elfert added a comment - There is a generic mailing-list for users of jenkins. See: https://www.jenkins.io/mailing-lists/
          felfert Fritz Elfert added a comment -

          Fixed in v1.20

          felfert Fritz Elfert added a comment - Fixed in v1.20

          People

            felfert Fritz Elfert
            jonathane Jonathan E
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: