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

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: plugin-proposals
    • Labels:
      None
    • Environment:
      AIX
    • Similar Issues:

      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

          Hide
          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

          Show
          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
          Hide
          kiy0taka kiy0taka added a comment -

          Fixed with SSH plugin v1.3.

          Show
          kiy0taka kiy0taka added a comment - Fixed with SSH plugin v1.3.
          Hide
          ggeorgea Gwen Georgeault added a comment -

          Mistakenly assigned it to me

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: