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

Setting up a checkout-script with cvs fails because of "Can't execute /usr/bin/ssh"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • build-line-plugin
    • None
    • jenkins-1.612-1.1.noarch

      Setting up jenkins to execute a build script:

      export CVSROOT=:ext:anoncvs@anoncvs.NetBSD.org:/cvsroot
      export CVS_RSH="/usr/bin/ssh_0022"
      if [ -e $WORKSPACE/src/CVS ]; then
        cvs up -P src xsrc
      else
        cvs get -P src xsrc
      fi
      

      With /usr/bin/ssh_0022 holding:

      /usr/bin/ssh -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $@
      

      leads to:

      Gestartet durch Benutzer tps
      Baue in Arbeitsbereich /var/lib/jenkins/jobs/netbsd_7-stable/workspace
      [workspace] $ /bin/sh -xe /tmp/hudson3460955588960620694.sh
      + export CVSROOT=:ext:anoncvs@anoncvs.NetBSD.org:/cvsroot
      + CVSROOT=:ext:anoncvs@anoncvs.NetBSD.org:/cvsroot
      + export CVS_RSH=/usr/bin/ssh_0022
      + CVS_RSH=/usr/bin/ssh_0022
      + '[' -e /var/lib/jenkins/jobs/netbsd_7-stable/workspace/src/CVS ']'
      + cvs up -P src xsrc
      /usr/bin/ssh_0022: Zeile 1: /usr/bin/ssh: Keine Berechtigung
      cvs [update aborted]: end of file from server (consult above messages if any)
      Build step 'Shell ausführen' marked build as failure
      Finished: FAILURE
      

      Jenkins does not have the rights to execute /usr/bin/ssh??
      Can't be:

      # su - jenkins
      Letzte Anmeldung: Donnerstag, den 07. Mai 2015, 08:32:28 CEST auf pts/1
      # cd jobs/netbsd_7-stable/workspace/
      # export CVSROOT=:ext:anoncvs@anoncvs.NetBSD.org:/cvsroot
      # export CVS_RSH="/usr/bin/ssh_0022"
      # cvs get -P src xsrc
      Warning added anoncvs.NetBSD.org to known hosts.
      [...]
      U src/bin/sh/bltin/echo.c
      U src/bin/sh/funcs/cmv
      U src/bin/sh/funcs/dirs
      U src/bin/sh/funcs/kill
      U src/bin/sh/funcs/login
      U src/bin/sh/funcs/newgrp
      U src/bin/sh/funcs/popd
      U src/bin/sh/funcs/pushd
      U src/bin/sh/funcs/suspend
      U src/bin/sleep/Makefile
      U src/bin/sleep/sleep.1
      U src/bin/sleep/sleep.c
      U src/bin/stty/Makefile
      U src/bin/stty/cchar.c
      U src/bin/stty/extern.h
      U src/bin/stty/gfmt.c
      U src/bin/stty/key.c
      U src/bin/stty/modes.c
      U src/bin/stty/print.c
      U src/bin/stty/stty.1
      U src/bin/stty/stty.c
      U src/bin/stty/stty.h
      U src/bin/sync/Makefile
      U src/bin/sync/sync.8
      U src/bin/sync/sync.c
      U src/bin/test/Makefile
      U src/bin/test/TEST.csh
      U src/bin/test/test.1
      U src/bin/test/test.c
      U src/common/dist/zlib/ChangeLog
      [...]
      #
      

      From shell it works, but not from jenkins executing /bin/sh.

            Unassigned Unassigned
            tps800 Thomas Schweikle
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: