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

Unable to run script.sh using "Execute shell script on remote host using ssh"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • _unsorted
    • None
    • This is Jenkins ver. 2.19.1 which is installed on a CentOS 6.6 server. The slave node is a CentOS 6.6 server.

      Jenkins can execute jobs to start and stop the slave node (Linux 6 server) successfully. However, when I create a job to run the setup.sh to install a patch on the slave node, it runs forever when I execute the build job:
      The details in the Build:
      "
      Execute shell script on remote host using ssh
      SSH site: root@hostname:22
      Command

      export DISPLAY=:11.0

      cd /path-to-file/
      ./setup.sh
      "
      It runs forever.

      I also try a few ways such as these commands:

      cd /path-to-file/
      sh setup.sh
      or
      /path-to-file/setup.sh
      or
      /path-to-file/setup.sh -Dcbif.install.zip=/path-to-file/patch.zip -Dcbif.install.quiet=true

      Please give your advice,
      Thank you

            oleg_nenashev Oleg Nenashev
            jimmyvo Jimmy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: