Giter VIP home page Giter VIP logo

Comments (4)

thisdudeiknew avatar thisdudeiknew commented on August 13, 2024

Context: Upon upgrading from v3.0.0 to v3.1.0, I was unable to complete builds because GCE couldn't create an instance due to "missing" information in the Jenkins config.xml:

    <com.google.jenkins.plugins.computeengine.ComputeEngineCloud plugin="[email protected]">
      <name>gce-gce</name>
      <instanceCap>5</instanceCap>
      <projectId>asdf</projectId>
      <credentialsId>asdf</credentialsId>
      <instanceId></instanceId>
      <configurations>
        <com.google.jenkins.plugins.computeengine.InstanceConfiguration>
          <description>Dynamically created GCE instance for Jenkins builds</description>
          <namePrefix>jenkins-dynamic-slave</namePrefix>
          <region>https://www.googleapis.com/compute/v1/projects/asdf/regions/us-east1</region>
          <zone>https://www.googleapis.com/compute/v1/projects/asdf/zones/us-east1-b</zone>
          <machineType>https://www.googleapis.com/compute/v1/projects/asdf/zones/us-east1-b/machineTypes/n1-standard-8</machineType>
          <numExecutorsStr>1</numExecutorsStr>
          <startupScript></startupScript>
          <preemptible>false</preemptible>
          <minCpuPlatform></minCpuPlatform>
          <labels>jenkins-dynamic-slave-gcp</labels>
          <runAsUser>jenkins</runAsUser>
          <bootDiskType>https://www.googleapis.com/compute/v1/projects/asdf/zones/us-east1-b/diskTypes/pd-ssd</bootDiskType>
          <bootDiskAutoDelete>true</bootDiskAutoDelete>
          <bootDiskSourceImageName>https://www.googleapis.com/compute/v1/projects/asdf/global/images/jenkins-agent-1554304368</bootDiskSourceImageName>
          <bootDiskSourceImageProject>asdf</bootDiskSourceImageProject>
          <networkConfiguration class="com.google.jenkins.plugins.computeengine.AutofilledNetworkConfiguration">
            <network>https://www.googleapis.com/compute/v1/projects/asdf/global/networks/default</network>
            <subnetwork>default</subnetwork>
          </networkConfiguration>
          <externalAddress>true</externalAddress>
          <useInternalAddress>true</useInternalAddress>
          <networkTags></networkTags>
          <serviceAccountEmail></serviceAccountEmail>
          <mode>NORMAL</mode>
          <retentionTimeMinutesStr>11</retentionTimeMinutesStr>
          <launchTimeoutSecondsStr>300</launchTimeoutSecondsStr>
          <bootDiskSizeGbStr>50</bootDiskSizeGbStr>
          <oneShot>false</oneShot>
          <template></template>
          <windows>false</windows>
          <windowsPasswordCredentialsId></windowsPasswordCredentialsId>
          <windowsPrivateKeyCredentialsId></windowsPrivateKeyCredentialsId>
          <windowsConfig/>
          <createSnapshot>false</createSnapshot>
          <remoteFs></remoteFs>
          <googleLabels>
            <entry>
              <string>jenkins_cloud_id</string>
              <string></string>
            </entry>
            <entry>
              <string>jenkins_config_name</string>
              <string>jenkins-dynamic-slave</string>
            </entry>
          </googleLabels>
          <numExecutors>1</numExecutors>
          <retentionTimeMinutes>11</retentionTimeMinutes>
          <launchTimeoutSeconds>300</launchTimeoutSeconds>
          <bootDiskSizeGb>50</bootDiskSizeGb>
        </com.google.jenkins.plugins.computeengine.InstanceConfiguration>
      </configurations>
    </com.google.jenkins.plugins.computeengine.ComputeEngineCloud>
  </clouds>```

from google-compute-engine-plugin.

thisdudeiknew avatar thisdudeiknew commented on August 13, 2024

Particularly, the instanceId and jenkins_cloud_id are missing.

from google-compute-engine-plugin.

thisdudeiknew avatar thisdudeiknew commented on August 13, 2024

Error message from Jenkins:

{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression.",
    "reason" : "invalid"
  } ],
  "message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression."
}
30-Apr-2019 13:01:57.882 WARNING [jenkins.util.Timer [#10]] com.google.jenkins.plugins.computeengine.ComputeEngineCloud.provision Error provisioning node
 com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression.",
    "reason" : "invalid"
  } ],
  "message" : "Invalid value for field 'filter': '(labels.jenkins_cloud_id eq )'. Invalid list filter expression."
}
    at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:146)
    at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
    at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1067)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
    at com.google.jenkins.plugins.computeengine.client.ComputeClient.getInstancesWithLabel(ComputeClient.java:398```

from google-compute-engine-plugin.

rachely3n avatar rachely3n commented on August 13, 2024

Fixed with: #86 Thanks to @ingwarsw

I've also blacklisted the release 3.1.0 here:
jenkins-infra/update-center2#272

from google-compute-engine-plugin.

Related Issues (20)

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.