How can I make Jenkins CI with Git trigger on pushes to master?

As already noted by gezzed in his comment, meanwhile there is a good solution (described in Polling must die: triggering Jenkins builds from a Git hook): Set the Jenkins job’s build trigger to Poll SCM, but do not specify a schedule. Create a GitHub post-receive trigger to notify the URL http://yourserver/jenkins/git/notifyCommit?url=<URL of the Git repository>?token=<get … Read more

Maven dependencies are failing with a 501 error

The reason for the observed error is explained in Central 501 HTTPS Required Effective January 15, 2020, The Central Repository no longer supports insecure communication over plain HTTP and requires that all requests to the repository are encrypted over HTTPS. It looks like latest versions of Maven (tried with 3.6.0, 3.6.1) are already using the … Read more

How to stop an unstoppable zombie job on Jenkins without restarting the server?

I had also the same problem and fix it via Jenkins Console. Go to “Manage Jenkins” > “Script Console” and run a script: Jenkins .instance.getItemByFullName(“JobName”) .getBuildByNumber(JobNumber) .finish(hudson.model.Result.ABORTED, new java.io.IOException(“Aborting build”)); You’ll have just specify your JobName and JobNumber.

How to reset Jenkins security settings from the command line?

The simplest solution is to completely disable security – change true to false in /var/lib/jenkins/config.xml file. <useSecurity>true</useSecurity> A one-liner to achieve the same: sed -i ‘s/<useSecurity>true<\/useSecurity>/<useSecurity>false<\/useSecurity>/g’ /var/lib/jenkins/config.xml Then just restart Jenkins: sudo service jenkins restart And then go to admin panel and set everything once again. If you in case are running your Jenkins inside … Read more

Change email address in Git

Locally set email-address (separately for each repository) Open Git Bash. Change the current working directory to the local repository in which you want to set your Git config email. Set your email address with the following command: git config user.email “your_email@abc.example” Confirm that you have set your email address correctly with the following command. git … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)