Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created April 24, 2022 20:32
Show Gist options
  • Select an option

  • Save denzhel/718e60e10cc10972a16761cb868be2d4 to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/718e60e10cc10972a16761cb868be2d4 to your computer and use it in GitHub Desktop.
jenkins github matrix

If you're trying to trigger a Jenkins job using the CLI and get the following errors:

curl -H "Authorization: token abcdefg" .....

    Authentication required
    401 Error

You should chceck if you are using a Matrix Security, if so you should authenticate using a user:

curl --user <username>:<api_token> ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment