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

SSH Plugin : running remote script that returns non-zero value doesn't fail the build

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • plugin-proposals
    • None
    • AIX

    Description

      Using the SSH Plugin (https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin), running a remote script over ssh won't fail the build.

      According to this thread, it seems like it could be normal that this doesn't fail the build since it's a pre-build task.
      But for sure, it should at least be made clearer in the docs that failing remote command is not going to fail the jenkins build?
      Better would be having an option to fail or not the build.

      Cheers.
      Thanks for the great tools, everybody.

      Attachments

        Activity

          Code changed in jenkins
          User: kiy0taka
          Path:
          src/main/java/org/jvnet/hudson/plugins/SSHBuildWrapper.java
          http://jenkins-ci.org/commit/ssh-plugin/b28b0213ba04a0a3bc0b1724b1aea6248b3059e4
          Log:
          fix JENKINS-9240

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: kiy0taka Path: src/main/java/org/jvnet/hudson/plugins/SSHBuildWrapper.java http://jenkins-ci.org/commit/ssh-plugin/b28b0213ba04a0a3bc0b1724b1aea6248b3059e4 Log: fix JENKINS-9240
          kiy0taka kiy0taka added a comment -

          Fixed with SSH plugin v1.3.

          kiy0taka kiy0taka added a comment - Fixed with SSH plugin v1.3.

          Mistakenly assigned it to me

          ggeorgea Gwen Georgeault added a comment - Mistakenly assigned it to me

          People

            kiy0taka kiy0taka
            batmat Baptiste Mathus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: