Jenkins notification-poll-build fail with “No git consumers for URI ssh://path”

Whenever my Jenkins gets notified about a new git commit to my repository foo, I get the following log/error response on the triggering client: Scheduled polling of foo No git consumers for URI ssh://git@localhost:9777/path/to/foo.git This failed notification does not commence building. Using the manual “Build Now” commences building successfully. Setup I have the Jenkins instance … Read more

Disable manual build trigger for jenkins job

Is it possible to disable manual build trigger to be configured per job? I explicitly do not want to disable a job, obviously, as it should be triggered by other build triggers (SCM Polling, Schedule, upstream job). Answer Try using Job Restrictions Plugin Then check these options: Restrict build execution causes Restrict manual builds submission … Read more

How to configure Jenkins email Notifications through outlook?

I refered this doc and have configured MS 365 as follows but it throws exceptions. I have tried it with 465 port but still it’s failing and also without checking Use SSL but it throws this exception javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext … Read more

Cannot switch to jenkins user redhat linux

I have a redhat linux server running jenkins. I setup jenkins as per the instructions mentioned here https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions The problem is that I need to switch to the jenkins user in order to solve an ssh connection issue, but I cannot. I try su – jenkins however after I enter that, the terminal remains[root@redhat ~]# … Read more

Jenkins realtime console output for parallel threaded fabric command [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Super User. Closed 4 years ago. Improve this question We have a Python fabric command that runs in parallel across several hosts, something like this: $ fab –hosts=prod1.server,prod2.server,prod3.server –parallel copy_cache This will … Read more

Is there a way to insert a manual approval in Jenkins 2 pipelines?

Jenkins 2 has pipelines has a first class citizen. However, in the examples the tasks seem to be executed as a single sequence: node { // Mark the code checkout ‘stage’…. stage ‘Checkout’ // Get some code from a GitHub repository git url: ‘git@github.com:elifesciences/elife-bot.git’ // Mark the code build ‘stage’…. stage ‘Build’ echo “Unit tests … Read more

Suppress execution trace for echo command?

I’m running shell scripts from Jenkins, which kicks off shell scripts with the shebang options #!/bin/sh -ex. According to Bash Shebang for dummies?, -x, “causes the shell to print an execution trace”, which is great for most purposes – except for echos: echo “Message” produces the output + echo “Message” Message which is a bit … Read more