When you try to setup webhook from gitlab, please refer: https://github.com/jenkinsci/gitlab-plugin
URL of Jenkins Rest API looks like https://JENKINS_URL/job/YOUR_JOB/job/123456
you need to replace all jobs in url and insert one "project" like https://JENKINS_URL/project/YOUR_JOB/123456
To make the Intellij Idea to show auto completion popup, you can do as following:
1. Download and install groovy.
2. In Idea settings->File Type, associate the Jenkinsfile with groovy.
3. Go to Jenkins website, access
http://{YOUR_JENKINS_ADDRESS}/job/{YOUR_PIPELINE_JOB}/pipeline-syntax/gdsl
4. Copy out the content and create a file pipeline.gdsl in the Idea project.
Sonarqube now only allows to run with Jdk 11, if your project is still built with Jdk1.8, how to use Sonarqube without upgrade Jdk?
Let's suppose Jdk 11 is already installed in the Jenkins agent. When you try to run the mvn sonar:sonar ..., you can add export JAVA_HOME=/path/to/jdk11 before mvn sonar:sonar... like this
sh "export JAVA_HOME=/path/to/jdk11; mvn sonar:sonar ..."