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

Error running agvtool mvers -terse1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: xcode-plugin
    • Labels:
      None
    • Environment:
      Building on Jenkins slave running Mac OS X Snow Leopard: Darwin worms.openpeak.com 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
    • Similar Issues:

      Description

      When my build job starts I get this Console Output (I have sanitized some doman names and replaced my job name with "myjob":

      Started by timer
      Building remotely on Worms_IOS
      Reverting <sanitized>
      Updating https://<sanitized>
      At revision 66
      no change for <sanitized> since the previous build
      No emails were triggered.
      Working directory is /Users/builder/workspace/<myjob>.
      [<myjob>] $ /usr/bin/xcodebuild -version
      Xcode 4.2
      Build version 4C199
      Fetching marketing version number (CFBundleShortVersionString) from project.
      [myjob] $ /usr/bin/agvtool mvers -terse1
      FATAL: java.lang.String.isEmpty()Z
      java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
      at au.com.rayh.XCodeBuilder.perform(XCodeBuilder.java:195)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:695)
      at hudson.model.Build$RunnerImpl.build(Build.java:178)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:461)
      at hudson.model.Run.run(Run.java:1404)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:230)

      Let me add that when I run agvtool mvers -terse1 from the command line in that working directory it displays "1.0".
      Here is my java info for the slave:
      worms:~ builder$ java -version
      java version "1.6.0_29"
      Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527)
      Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

        Attachments

          Activity

          Hide
          aheritier Arnaud Héritier added a comment -

          Do you have some logs in your node logs like : http://YOUR_URL/computer/Worms_IOS/log
          Are you launching the agent from JNLP or with SSH ?

          Show
          aheritier Arnaud Héritier added a comment - Do you have some logs in your node logs like : http://YOUR_URL/computer/Worms_IOS/log Are you launching the agent from JNLP or with SSH ?
          Hide
          aheritier Arnaud Héritier added a comment -

          I attached the latest SNAPSHOT of the plugin. Can you check if it fixes the issue. I removed all usages of String.isEmpty() but I always don't understand how it could be a problem for a java 6 slave.

          Show
          aheritier Arnaud Héritier added a comment - I attached the latest SNAPSHOT of the plugin. Can you check if it fixes the issue. I removed all usages of String.isEmpty() but I always don't understand how it could be a problem for a java 6 slave.
          Hide
          scook Stephen Cook added a comment -

          Here is my log from .../computer/Worms_IOS/log which is highly suggestive. Referring to my last comment below, it looks like it is hung:

          [01/09/12 13:29:06] [SSH] Opening SSH connection to worms.openpeak.com:22.
          [01/09/12 13:29:06] [SSH] Authenticating as builder with /home/builder/.ssh/id_rsa.
          [01/09/12 13:29:06] [SSH] Authentication successful.
          [01/09/12 13:29:06] [SSH] The remote users environment is:
          BASH=/bin/bash
          BASH_ARGC=()
          BASH_ARGV=()
          BASH_EXECUTION_STRING=set
          BASH_LINENO=()
          BASH_SOURCE=()
          BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin10.0")
          BASH_VERSION='3.2.48(1)-release'
          DIRSTACK=()
          EUID=508
          GROUPS=()
          HOME=/Users/builder
          HOSTNAME=worms.openpeak.com
          HOSTTYPE=x86_64
          IFS=$' \t\n'
          LOGNAME=builder
          MACHTYPE=x86_64-apple-darwin10.0
          MAIL=/var/mail/builder
          OPTERR=1
          OPTIND=1
          OSTYPE=darwin10.0
          PATH=/usr/bin:/bin:/usr/sbin:/sbin
          PIPESTATUS=([0]="0")
          PPID=59359
          PS4='+ '
          PWD=/Users/builder
          SHELL=/bin/bash
          SHELLOPTS=braceexpand:hashall:interactive-comments
          SHLVL=1
          SSH_CLIENT='xx.xx.xx.xx 37693 22'
          SSH_CONNECTION='xx.xx.xx.xx 37693 xx.xx.xx.xx 22'
          TERM=dumb
          UID=508
          USER=builder
          _=']'
          [01/09/12 13:29:06] [SSH] Starting sftp client.
          [01/09/12 13:29:06] [SSH] Copying latest slave.jar...
          [01/09/12 13:29:07] [SSH] Copied 250,903 bytes.
          [01/09/12 13:29:07] [SSH] Starting slave process: cd '/Users/builder' && /usr/bin/java -jar slave.jar
          <===[JENKINS REMOTING CAPACITY]===>
          (HERE I have the circular clock-like icon indicating it is waiting for more input)

          Show
          scook Stephen Cook added a comment - Here is my log from .../computer/Worms_IOS/log which is highly suggestive. Referring to my last comment below, it looks like it is hung: [01/09/12 13:29:06] [SSH] Opening SSH connection to worms.openpeak.com:22. [01/09/12 13:29:06] [SSH] Authenticating as builder with /home/builder/.ssh/id_rsa. [01/09/12 13:29:06] [SSH] Authentication successful. [01/09/12 13:29:06] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=( [0] ="3" [1] ="2" [2] ="48" [3] ="1" [4] ="release" [5] ="x86_64-apple-darwin10.0") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=508 GROUPS=() HOME=/Users/builder HOSTNAME=worms.openpeak.com HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=builder MACHTYPE=x86_64-apple-darwin10.0 MAIL=/var/mail/builder OPTERR=1 OPTIND=1 OSTYPE=darwin10.0 PATH=/usr/bin:/bin:/usr/sbin:/sbin PIPESTATUS=( [0] ="0") PPID=59359 PS4='+ ' PWD=/Users/builder SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='xx.xx.xx.xx 37693 22' SSH_CONNECTION='xx.xx.xx.xx 37693 xx.xx.xx.xx 22' TERM=dumb UID=508 USER=builder _=']' [01/09/12 13:29:06] [SSH] Starting sftp client. [01/09/12 13:29:06] [SSH] Copying latest slave.jar... [01/09/12 13:29:07] [SSH] Copied 250,903 bytes. [01/09/12 13:29:07] [SSH] Starting slave process: cd '/Users/builder' && /usr/bin/java -jar slave.jar <=== [JENKINS REMOTING CAPACITY] ===> (HERE I have the circular clock-like icon indicating it is waiting for more input)
          Hide
          scook Stephen Cook added a comment -

          I tried the attached plugin-in which seems to fix it:

          Working directory is /Users/builder/workspace/<myjob>.
          [<myjob>] $ /usr/bin/xcodebuild -version
          Xcode 4.2
          Build version 4C199
          Fetching marketing version number (CFBundleShortVersionString) from project.
          [<myjob>] $ /usr/bin/agvtool mvers -terse1
          Found marketing version (CFBundleShortVersionString): 1.0.
          Marketing version (CFBundleShortVersionString) found in project configuration: 1.0.
          Fetching technical version number (CFBundleVersion) from project.
          [<myjob>] $ /usr/bin/agvtool vers -terse
          No marketing version found (CFBundleVersion)
          Technical version (CFBundleVersion) found in project configuration: .
          ...

          Of course, I now find standard build errors I will need to address on my side.

          Thanks.

          Show
          scook Stephen Cook added a comment - I tried the attached plugin-in which seems to fix it: Working directory is /Users/builder/workspace/<myjob>. [<myjob>] $ /usr/bin/xcodebuild -version Xcode 4.2 Build version 4C199 Fetching marketing version number (CFBundleShortVersionString) from project. [<myjob>] $ /usr/bin/agvtool mvers -terse1 Found marketing version (CFBundleShortVersionString): 1.0. Marketing version (CFBundleShortVersionString) found in project configuration: 1.0. Fetching technical version number (CFBundleVersion) from project. [<myjob>] $ /usr/bin/agvtool vers -terse No marketing version found (CFBundleVersion) Technical version (CFBundleVersion) found in project configuration: . ... Of course, I now find standard build errors I will need to address on my side. Thanks.
          Hide
          aheritier Arnaud Héritier added a comment -

          ok thus I mark it as fixed for 1.3 even if in your case I don't understand why you may have a java 1.6 incompatibility on a Java 6 VM.

          Show
          aheritier Arnaud Héritier added a comment - ok thus I mark it as fixed for 1.3 even if in your case I don't understand why you may have a java 1.6 incompatibility on a Java 6 VM.

            People

            • Assignee:
              aheritier Arnaud Héritier
              Reporter:
              scook Stephen Cook
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: