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.



