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

          batmat Baptiste Mathus created issue -
          batmat Baptiste Mathus made changes -
          Field Original Value New Value
          Component/s plugin [ 15491 ]
          Component/s ssh-slaves [ 15578 ]
          kiy0taka kiy0taka made changes -
          Assignee Kohsuke Kawaguchi [ kohsuke ] kiy0taka [ kiy0taka ]
          kiy0taka kiy0taka made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s current [ 10162 ]
          Resolution Fixed [ 1 ]
          ggeorgea Gwen Georgeault made changes -
          Assignee kiy0taka [ kiy0taka ] Gwen George [ ggeorgea ]
          ggeorgea Gwen Georgeault made changes -
          Assignee Gwen George [ ggeorgea ] kiy0taka [ kiy0taka ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 139400 ] JNJira + In-Review [ 188480 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: