-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
52 lines (45 loc) · 1.15 KB
/
Jenkinsfile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -- pipeline
pipeline {
options {
/* ansiColor('xterm') */
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr:'', daysToKeepStr: '', numToKeepStr: '5'))
disableConcurrentBuilds()
}
environment {
REPOSITORY="https://github.com/vzvca/xdmcp-tunnel"
BRANCH="master"
}
agent {
label "amd64"
}
stages {
stage('git-clone'){
steps {
checkout( changelog: false,
scm :[
$class: 'GitSCM',
branches: [[name: "*/${BRANCH}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [
[ $class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: true, // Equivalent a l'option git --recursive
trackingSubmodules: false, // Equivalent a l'option git --remote
timeout: 30],
[$class: 'CloneOption', depth: 1, noTags: false, reference: '', shallow: true]
],
submoduleCfg: [],
userRemoteConfigs: [[
credentialsId: 'vzvca',
url: "${REPOSITORY}.git"
]], ])
}
}
stage('exec'){
steps {
sh 'make clean build'
}
}
}
}