Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build trigger fails while using token authorization #38

Closed
ddimitrioglo opened this issue Feb 9, 2018 · 3 comments
Closed

Build trigger fails while using token authorization #38

ddimitrioglo opened this issue Feb 9, 2018 · 3 comments

Comments

@ddimitrioglo
Copy link

ddimitrioglo commented Feb 9, 2018

When I'm trying to invoke an endpoint without user:token, just by using ?token=xxxx the build is triggered but getting the error:

{
    "status": "ok",
    "data": {
        "triggerResults": {
            "jenkins-test": "Exception occurred, full stack trace in Jenkins server log. Thrown in: org.jenkinsci.plugins.gwt.GenericTriggerResults:21"
        }
    }
}

P.S. If I provide a wrong token the given response has right error message.

@tomasbjerre
Copy link
Contributor

Probably same as #37

An update should fix it

@ddimitrioglo
Copy link
Author

ddimitrioglo commented Feb 9, 2018

@tomasbjerre thank you, looking forward to update.

FYI: If I use filter, the filtered repo gives expected data:

{
    "status": "ok",
    "data": {
        "triggerResults": {
            "jenkins-test": {
                "id": 0,
                "regexpFilterExpression": ".*jenkins-test$",
                "regexpFilterText": "$test",
                "searchUrl": "",
                "triggered": false,
                "url": ""
            },
            "test-jenkins": "Exception occurred, full stack trace in Jenkins server log. Thrown in: org.jenkinsci.plugins.gwt.GenericTriggerResults:21"
        }
    }
}

@ddimitrioglo
Copy link
Author

@tomasbjerre Confirm that was fixed in 1.26. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants