-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (30 loc) · 1.1 KB
/
Jenkinsfile
File metadata and controls
30 lines (30 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pipeline {
agent { label 'azure-linux-ubuntu-18' }
options {
skipStagesAfterUnstable()
disableConcurrentBuilds()
}
stages {
stage("Clone Git Repo") {
steps {
cleanWs()
script {
def branchName = env.CHANGE_BRANCH ?: env.BRANCH_NAME
env.branchName = branchName
echo "Using branch/commit: ${env.BRANCH_NAME}"
}
checkout([
$class: 'GitSCM',
branches: [[name: "refs/heads/${env.branchName}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'podio-objc'],
[$class: 'CloneOption', shallow: true, depth: 1, noTags: false]
],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'github-app-podio-jm', url: 'https://github.com/podio/podio-objc.git']]
])
}
}
}
}