This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      In my Pipeline script, I name credentials for the sshagent step, but when those credentials do not exist, no error happens.

      node {
        sshagent(credentials: ['some-nonexistent-id']) {
          sh 'script-which-needs-ssh-credentials.sh'
        }
      }
      

      I would have expected a typed exception (e.g. CredentialsUnavailableException) to be thrown, instead the closure happily continues and invokes the script which required the credentials

            Assignee:
            Unassigned
            Reporter:
            R. Tyler Croy
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: