Trigger a job for every Jenkins update automatically

2021-09-13 Thread touseef
I am trying to run a job in Jenkins automatically every time my Jenkins restarts or update my Jenkins instance. Any insight of how to do would be appreciated. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

Jenkins pipeline build not happening automatically upon code push to GitHub

2021-09-13 Thread 'Venkat' via Jenkins Users
Hi Team, Recently we have migrated from Bit bucket to Github and I am trying to update the existing Jenkins pipeline bitbucket web-book with the Github webhook and when we are trying to push the code pipeline build is not working.(Automatic trigger is not happening) When I try to trigger the pipe

setting Mailer authentication

2021-09-13 Thread Alan Sparks
In one of my init.groovy scripts, I'm trying to do: mailServer.setSmtpAuth(SMTPUser, SMTPPassword) But this flags an error, saying that's deprecated, and to use "authentication". But I can't find that documentation. Can anyone point me to a reference or example of using "authentication" to set

[JCasC] Configure mailer SMTP credentials

2021-09-13 Thread Alan Sparks
Can anyone point me to an example of using SMTP configuration with JCasC? I tried adding a bogus username and password to the "email notification" configuration and dumping the config, but the configuration comes out as: smtpPassword: "{AQAAABA...}" Can someone point to how JCasC wants the confi

Re: Any way to construct a url to a particular file in the jenkins workspace?

2021-09-13 Thread Jerome Godbout
Humm, that would be hard and security unwise. The executing node path aren't available to the web. If you are on a secure local network and you really want to go down that road, you need to 1. mount the slave nodes into the master node local path that would be accessible by the jenkins w

Re: Any way to construct a url to a particular file in the jenkins workspace?

2021-09-13 Thread David Karr
Thanks for the reply, but I think you've misunderstood the problem. Getting, using, and publishing the filesystem path to the file is not a problem. What I need to do is create a functional url to that file, which I can print in the Jenkins build output, which a user can click to get to that f

Re: Any way to construct a url to a particular file in the jenkins workspace?

2021-09-13 Thread Jerome Godbout
Some helper I made for my scripted: Path conversion: *def ToWindowsPath(path) {* *return path.replace("/", "\\");* *}* *def ToUnixPath(path) {* *return path.replace("\\","/");* *}* *def ToNativePath(path) {* *if(isUnix()) {* *return ToUnixPath(path);* * }* *return ToWindowsPath(path);* *}* *def