Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Michael Neale
Hi Craig, glad that post is getting mileage! So in kubernetes, I guess that would be adding to the pod that is running your Jenkins container: there would be a pod definition (not sure if you wrote it) somewhere, and you could cook up an image with smee running and have it as a "sidecar" next to t

Re: Getting user who created a pull request with Jenkins pipeline

2019-10-24 Thread Eberhard Beilharz
Answering (part of) my own question: there's an environment variable CHANGE_AUTHOR that gets set on a PR. There's also the pipeline-github-plugin that provides information about a PR. Now to figure out how to find out if the change author is a member/collaborator or not... -- You received thi

Trying to get Github events like "commit comments and pushes" to build the jenkins pipeline Job

2019-10-24 Thread kishore babu
Based on the commit comment, I would like to trigger the Pipeline Job. Firstly unable to get the commit trigger to build the Pipeline Job. Can someone suggest the best practice? Currently, im using Github enterprise server and Local hosted Jenkins server. I'm able to get the pull request using Gi

Re: GitHub webhook push CI issue with pipeline projects

2019-10-24 Thread kishore babu
I hope you got the solution, If you could suggest me the best practice it will be helpful for me. On Friday, 11 November 2016 09:18:12 UTC+5:30, Cory Grubbs wrote: > > Okstill doesn't solve the problem of having to have two separate > Jenkins projects for every build which is not efficient n

GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
Michael, In your blog post: "Triggering builds with webhooks behind a secure firewall" https://jenkins.io/blog/2019/01/07/webhook-firewalls/ You gave a good overview of how someone can use webhooks invoked from GitHub in the cloud, to a Jenkins server which exists behind a firewall, using https:

How to enable "recordIssues tool: pyLint"

2019-10-24 Thread tOmMy Lau
Hi, I'm a new fish on Jenkins, I saw one of this pipeline code recordIssues tool: pyLint(pattern: '.test_reports/pylint.out'), enabledForFailure: true I found it's interesting and added into my Jenkinsfile, however, when my job runs at this line, it throws error as below: java.lang.NoSuchMethod

Re: How to enable "recordIssues tool: pyLint"

2019-10-24 Thread Ullrich Hafner
You need to install the warnings-ng plugin: https://github.com/jenkinsci/warnings-ng-plugin For more details please ask in our Gitter channel: https://gitter.im/jenkinsci/warnings-plugin > Am 24.10

[Jenkins X] What are the best practices for upgrading/adding Jenkins plugins?

2019-10-24 Thread Andy Hopper
Hello! First: I'm used to Jenkins, but I'm a JX noob. We just set up a Jenkins X installation, and I see that a lot of the plugins are outdated. It appears that upgrading them directly in Jenkins is not a good idea as those changes will not be persisted. What are the best practices for upgradin

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
This seems unnecessarily complicated. Why does the smee client need to be next to the Jenkins server at all? If I was not using Kubernetes, and if I had two separate physical machines, one running Jenkins and one running smee, would it be possible for smee to interact with Jenkins via the REST API

Timestamper 1.9+ - how to deal with added content (timestamps) in build logs.

2019-10-24 Thread Austin Witt
Several Jenkins masters that I care about have recently upgraded the Timestamper plugin to 1.10 from 1.8. This pulls in the relatively large change in 1.9 of *timestamps actually being written to the build logs* instead of handled as metadata. The "View as Plain Text" link and /consoleText urls

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Michael Neale
yeah fair point it doesn't have to be right next to it - but it has to be somewhere it can reach /github-webhook endpoint - so could be a totally separate app? (as long as your Jenkins master instance is discoverable and accessible from elsewhere from the cluster - which I guess it would be right?)

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Craig Rodrigues
Awesome! So I could run the smee client on a separate physical host, but with network connectivity to my Jenkins server. Both the smee client and the Jenkins server would be behind the firewall. To be cool, I could Dockerize the smee client, and deploy that in my Kubernetes cluster. However, I w

Re: GitHub webhooks, where to put smee client if Jenkins is in a container?

2019-10-24 Thread Michael Neale
yeah - as long as it can post the webhook, it can run anywhere it needs to. It is run by github, but not sure of its officially supported status (they also open source the code to it) On Fri, Oct 25, 2019 at 11:10 AM Craig Rodrigues wrote: > Awesome! So I could run the smee client on a separat

How to properly use ${FILE,path=foo.txt} in Jenkins?

2019-10-24 Thread Ilia Basin
Hi. I'm trying to use the syntax `${FILE,path=foo.txt}` to introduced in Token Macro Plugin 1.11. My plugin version is 1.12.1 In what context can this be used? My project is a freestyle project. It creates foo.txt, then I have the EnvInject step with the following: AAA=${FILE,path=foo.txt}