Discussion:
Validate Jenkinsfile while using oauth
domi
2018-11-16 13:12:44 UTC
Permalink
Hi,
I really like the way I can validate my Jenkinsfile from within VS Code now: https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/ <https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/>

But how can I do this when I use any of the Oauth-Plugins like the one for Github[1] or Bitbucket [2]?

/Domi

[1] https://plugins.jenkins.io/github-oauth <https://plugins.jenkins.io/github-oauth>
[2] https://plugins.jenkins.io/bitbucket-oauth
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/85C6A2FC-AA90-4B84-8FF9-185426EA606F%40fortysix.ch.
For more options, visit https://groups.google.com/d/optout.
Jesse Glick
2018-11-16 19:18:59 UTC
Permalink
Post by domi
I really like the way I can validate my Jenkinsfile from within VS Code now: https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/
But how can I do this when I use any of the Oauth-Plugins like the one for Github[1] or Bitbucket [2]?
I presume that `jenkins.pipeline.linter.connector.pass` could be an
API token rather than a password. In fact, it really should be, even
if you are using a password-based security realm. Probably this is
just a matter of fixing the documentation to clarify that.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3xpZPi6qU%2BaEg37Ov7Bxn7GLAP29tdc7S1_d4SCAr-jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
domi
2018-11-19 12:29:22 UTC
Permalink
Unfortunately this does not seem to work :(
Post by Jesse Glick
Post by domi
I really like the way I can validate my Jenkinsfile from within VS Code now: https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/
But how can I do this when I use any of the Oauth-Plugins like the one for Github[1] or Bitbucket [2]?
I presume that `jenkins.pipeline.linter.connector.pass` could be an
API token rather than a password. In fact, it really should be, even
if you are using a password-based security realm. Probably this is
just a matter of fixing the documentation to clarify that.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3xpZPi6qU%2BaEg37Ov7Bxn7GLAP29tdc7S1_d4SCAr-jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1FB72438-6AB1-4EAD-AFBF-9540101F6424%40fortysix.ch.
For more options, visit https://groups.google.com/d/optout.
Christopher Orr
2018-11-19 20:35:52 UTC
Permalink
FWIW, I had no problems setting it up with an API token last week (in place of a password), on a Jenkins instance that uses the Google Login plugin for authentication.
Post by domi
Unfortunately this does not seem to work :(
Post by Jesse Glick
Post by domi
I really like the way I can validate my Jenkinsfile from within VS Code now: https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/
But how can I do this when I use any of the Oauth-Plugins like the one for Github[1] or Bitbucket [2]?
I presume that `jenkins.pipeline.linter.connector.pass` could be an
API token rather than a password. In fact, it really should be, even
if you are using a password-based security realm. Probably this is
just a matter of fixing the documentation to clarify that.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3xpZPi6qU%2BaEg37Ov7Bxn7GLAP29tdc7S1_d4SCAr-jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/1FB72438-6AB1-4EAD-AFBF-9540101F6424%40fortysix.ch.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1542659752.819570.1582362288.7C8253F4%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.
Richard Bywater
2018-11-20 05:05:23 UTC
Permalink
I also just today set the password in Visual Code Studio to be my API token
and it worked like a charm.

Richard.
Post by Christopher Orr
FWIW, I had no problems setting it up with an API token last week (in
place of a password), on a Jenkins instance that uses the Google Login
plugin for authentication.
Post by domi
Unfortunately this does not seem to work :(
Post by Jesse Glick
Post by domi
I really like the way I can validate my Jenkinsfile from within VS
Code now: https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/
Post by domi
Post by Jesse Glick
Post by domi
But how can I do this when I use any of the Oauth-Plugins like the
one for Github[1] or Bitbucket [2]?
Post by domi
Post by Jesse Glick
I presume that `jenkins.pipeline.linter.connector.pass` could be an
API token rather than a password. In fact, it really should be, even
if you are using a password-based security realm. Probably this is
just a matter of fixing the documentation to clarify that.
--
You received this message because you are subscribed to the Google
Groups "Jenkins Developers" group.
Post by domi
Post by Jesse Glick
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3xpZPi6qU%2BaEg37Ov7Bxn7GLAP29tdc7S1_d4SCAr-jw%40mail.gmail.com
.
Post by domi
Post by Jesse Glick
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/1FB72438-6AB1-4EAD-AFBF-9540101F6424%40fortysix.ch
.
Post by domi
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/1542659752.819570.1582362288.7C8253F4%40webmail.messagingengine.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAAy0hwemaOPAp-LyPJv30Eos%3D9yCdxhAOvaL4bJBg5esrnU2aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
domi
2018-11-20 06:48:23 UTC
Permalink
Thanks guys, I must have made a typo somewhere... - I did a clean setup and tried the whole ting again - now it works!
Many thanks!
I also just today set the password in Visual Code Studio to be my API token and it worked like a charm.
Richard.
FWIW, I had no problems setting it up with an API token last week (in place of a password), on a Jenkins instance that uses the Google Login plugin for authentication.
Post by domi
Unfortunately this does not seem to work :(
Post by Jesse Glick
Post by domi
I really like the way I can validate my Jenkinsfile from within VS Code now: https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/ <https://jenkins.io/blog/2018/11/07/Validate-Jenkinsfile/>
But how can I do this when I use any of the Oauth-Plugins like the one for Github[1] or Bitbucket [2]?
I presume that `jenkins.pipeline.linter.connector.pass` could be an
API token rather than a password. In fact, it really should be, even
if you are using a password-based security realm. Probably this is
just a matter of fixing the documentation to clarify that.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3xpZPi6qU%2BaEg37Ov7Bxn7GLAP29tdc7S1_d4SCAr-jw%40mail.gmail.com <https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3xpZPi6qU%2BaEg37Ov7Bxn7GLAP29tdc7S1_d4SCAr-jw%40mail.gmail.com>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google
Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/1FB72438-6AB1-4EAD-AFBF-9540101F6424%40fortysix.ch <https://groups.google.com/d/msgid/jenkinsci-dev/1FB72438-6AB1-4EAD-AFBF-9540101F6424%40fortysix.ch>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1542659752.819570.1582362288.7C8253F4%40webmail.messagingengine.com <https://groups.google.com/d/msgid/jenkinsci-dev/1542659752.819570.1582362288.7C8253F4%40webmail.messagingengine.com>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAAy0hwemaOPAp-LyPJv30Eos%3D9yCdxhAOvaL4bJBg5esrnU2aA%40mail.gmail.com <https://groups.google.com/d/msgid/jenkinsci-dev/CAAy0hwemaOPAp-LyPJv30Eos%3D9yCdxhAOvaL4bJBg5esrnU2aA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/C58CA518-A25A-4807-B4B8-D30CC184525D%40fortysix.ch.
For more options, visit https://groups.google.com/d/optout.
Loading...