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

Build of docker-commons-plugin fails on macOS

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      mvn verify ends with:
      
      Tests run: 6, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 23.182 s <<< FAILURE! - in org.jenkinsci.plugins.docker.commons.credentials.DockerServerCredentialsBindingTest
      
      basics(org.jenkinsci.plugins.docker.commons.credentials.DockerServerCredentialsBindingTest)  Time elapsed: 3.73 s  <<< FAILURE!
      
      java.lang.AssertionError: 
      
      unexpected build status; build log was:
      
      …
      
      …
      
      [p] Running shell script
      
      + ./basics-step1.sh
      
      ++ stat -c %a ****
      
      stat: illegal option -- c
      
      usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
      
      + '[' = 700 ']'
      
      ./basics-step1.sh: line 5: [: =: unary operator expected
      

       

       Here is the man page for the mac:

      NAME
           readlink, stat -- display file status
      
      SYNOPSIS
           stat [-FLnq] [-f format | -l | -r | -s | -x] [-t timefmt] [file ...]
           readlink [-n] [file ...]
      DESCRIPTION
           The stat utility displays information about the file pointed to by file.  Read, write or execute permissions of the named file are not required, but all directories listed in the path name leading to the
           file must be searchable.  If no argument is given, stat displays information about the file descriptor for standard input.
      
           When invoked as readlink, only the target of the symbolic link is printed.  If the given argument is not a symbolic link, readlink will print nothing and exit with an error.
      
           The information displayed is obtained by calling lstat(2) with the given argument and evaluating the returned structure.
      
           The options are as follows:
      
           -F      As in ls(1), display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable, an at sign (`@') after each symbolic link, a percent sign
                   (`%') after each whiteout, an equal sign (`=') after each socket, and a vertical bar (`|') after each that is a FIFO.  The use of -F implies -l.
      
           -f format
                   Display information using the specified format.  See the FORMATS section for a description of valid formats.
      
           -L      Use stat(2) instead of lstat(2).  The information reported by stat will refer to the target of file, if file is a symbolic link, and not to file itself.
      
           -l      Display output in ls -lT format.
      
           -n      Do not force a newline to appear at the end of each piece of output.
      
           -q      Suppress failure messages if calls to stat(2) or lstat(2) fail.  When run as readlink, error messages are automatically suppressed.
      
           -r      Display raw information.  That is, for all the fields in the stat structure, display the raw, numerical value (for example, times in seconds since the epoch, etc.).
      
           -s      Display information in ``shell output'', suitable for initializing variables.
      
           -t timefmt
                   Display timestamps using the specified format.  This format is passed directly to strftime(3).
      
           -x      Display information in a more verbose way as known from some Linux distributions.
      

       

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Denis N. Antonioli
          Path:
          src/test/resources/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsBindingTest/basics-step1.sh
          http://jenkins-ci.org/commit/docker-commons-plugin/7908812dc85c04e795e79cd39412f87534ac1b85
          Log:
          JENKINS-48783: the macOs version of stat uses the '-f', not the '-c', argument to specify the format; it also has different format string.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Denis N. Antonioli Path: src/test/resources/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsBindingTest/basics-step1.sh http://jenkins-ci.org/commit/docker-commons-plugin/7908812dc85c04e795e79cd39412f87534ac1b85 Log: JENKINS-48783 : the macOs version of stat uses the '-f', not the '-c', argument to specify the format; it also has different format string.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/test/resources/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsBindingTest/basics-step1.sh
          http://jenkins-ci.org/commit/docker-commons-plugin/0b0429d2ddafedf50e05a641c695b26fb0b66d7e
          Log:
          Merge pull request #65 from denisa/JENKINS-48783

          JENKINS-48783: the macOs version of stat uses the '-f', not the '-c', argument to specify the format

          Compare: https://github.com/jenkinsci/docker-commons-plugin/compare/713d4733e36e...0b0429d2ddaf

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/resources/org/jenkinsci/plugins/docker/commons/credentials/DockerServerCredentialsBindingTest/basics-step1.sh http://jenkins-ci.org/commit/docker-commons-plugin/0b0429d2ddafedf50e05a641c695b26fb0b66d7e Log: Merge pull request #65 from denisa/ JENKINS-48783 JENKINS-48783 : the macOs version of stat uses the '-f', not the '-c', argument to specify the format Compare: https://github.com/jenkinsci/docker-commons-plugin/compare/713d4733e36e...0b0429d2ddaf

            People

            Assignee:
            d_n_a Denis Antonioli
            Reporter:
            d_n_a Denis Antonioli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: