Update Jenkinsfile
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user