Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-2165

Container instances do not work for plugin builds

    Details

    • Similar Issues:

      Description

      In INFRA-1633 R. Tyler Croy pointed to this announcement about this system, so I tried it out on an obscure plugin. That failed:

      ...
      Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip to /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/mvn on aci-maven-s1s9x
      ...
      Installing /home/jenkins/tools/hudson.model.JDK/jdk8/jdk.sh
      [jdk8] $ tar xzf /home/jenkins/tools/hudson.model.JDK/jdk8/jdk.sh
      ...
      mvn --batch-mode --show-version --errors '-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' -s /home/jenkins/workspace/Plugins_log-cli-plugin_PR-13@tmp/settings-azure.xml --update-snapshots '-Dmaven.repo.local=/home/jenkins/workspace/Plugins_log-cli-plugin_PR-13@tmp/m2repo' -Dmaven.test.failure.ignore clean install
      /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/mvn/bin/mvn: exec: line 191: /home/jenkins/tools/hudson.model.JDK/jdk8/bin/java: not found
      ...
      ERROR: script returned exit code 127
      Finished: FAILURE
      

      Perhaps there was nothing wrong with the image or agent per se, but buildPlugin was still attempting to install the JDK and Maven from tools, and besides being wasteful this does not work for some reason which is not clear from the log.

      I suppose buildPlugin could suppress the tool step usage when it finds the maven or maven-11 "platforms" being selected?

        Attachments

          Activity

          Hide
          rtyler R. Tyler Croy added a comment -

          Right, so the tool installers won't work properly within those ACI agents. I've unfortunately not had the time to propose a change which would disable the tool installers to the buildPlugin() step yet.

          Show
          rtyler R. Tyler Croy added a comment - Right, so the tool installers won't work properly within those ACI agents. I've unfortunately not had the time to propose a change which would disable the tool installers to the buildPlugin() step yet.
          Hide
          jglick Jesse Glick added a comment -
          Show
          jglick Jesse Glick added a comment - Presumably fixed in https://github.com/jenkins-infra/pipeline-library/pull/95 .

            People

            • Assignee:
              slide_o_mix Alex Earl
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: