diff --git a/Jenkinsfile b/Jenkinsfile index a1d8224..abfc1ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,14 @@ #!/usr/bin/env groovy +// Reference the GitLab connection name from your Jenkins Global configuration (https://JENKINS_URL/configure, GitLab section) +properties([gitLabConnection('your-gitlab-connection-name')]) + +node { + checkout scm // Jenkins will clone the appropriate git branch, no env vars needed + + // Further build steps happen here +} + pipeline { agent any stages {