-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.git.seen.test.tcmvns
104 lines (102 loc) · 5.02 KB
/
Jenkinsfile.git.seen.test.tcmvns
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/* Git Jenkins Test Monitor Pipeline for TNS/V */
def runTests
def localStaging
def expatRoot
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '3'))
}
triggers {
pollSCM('30-55 2 * * 6')
}
stages {
stage('checkout') {
steps {
checkout([$class: 'GitSCM',
changelog: true,
poll: true,
branches: [[name: "next"]],
extensions: [
[$class: 'CleanBeforeCheckout'],
[$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: true,
recursiveSubmodules: true, reference: '', trackingSubmodules: false]],
doGenerateSubmoduleConfigurations: false, extensions: [
[$class: 'CleanCheckout'],
[$class: 'CloneOption', timeout: 120, shallow: true],
[$class: 'CheckoutOption', timeout: 120],
],
userRemoteConfigs: [[url: 'https://github.com/git/git.git']]])
dir('../Ituglib_Build') {
checkout([$class: 'GitSCM',
branches: [[name: 'main']],
extensions: [
[$class: 'CleanBeforeCheckout']],
doGenerateSubmoduleConfigurations: false, extensions: [
[$class: 'CleanCheckout'],
[$class: 'CloneOption', timeout: 120, shallow: true],
[$class: 'CheckoutOption', timeout: 120],
[$class: 'IgnoreNotifyCommit'],
],
userRemoteConfigs: [[url: 'https://github.com/ituglib/ituglib-build.git']]])
}
dir('../Git_ManPages') {
checkout([$class: 'GitSCM',
branches: [[name: 'master']],
extensions: [
[$class: 'CleanBeforeCheckout']],
doGenerateSubmoduleConfigurations: false, extensions: [
[$class: 'CleanCheckout'],
[$class: 'CloneOption', timeout: 120, shallow: true],
[$class: 'CheckoutOption', timeout: 120],
[$class: 'IgnoreNotifyCommit'],
],
userRemoteConfigs: [[url: 'https://github.com/gitster/git-manpages.git']]])
}
script {
load "../Ituglib_Build/Jenkinsfile.globals.all"
load "../Ituglib_Build/Jenkinsfile.globals.nsx"
localStaging = "${LOCAL_STAGING}"
expatRoot = "${EXPAT_ROOT}"
runTests = true
}
}
}
stage('build-3.0') {
steps {
withEnv(["GIT_DIST=${localStaging}",
'PREFIX=/usr/local-ssl3.0',
'PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_FIRST_LIB_PATH=/usr/local-ssl3.0/lib:/usr/local/lib']) {
sh "/usr/coreutils/bin/make V=1 prefix=${PREFIX} CFLAGS=\"-g -O2 -Winline -I/usr/local-ssl3.0/include -I/usr/coreutils/include -I${expatRoot}/include\" LDFLAGS=\"/usr/coreutils/lib/libz.a -L/usr/local-ssl3.0/lib -L/usr/coreutils/lib -L${expatRoot}/lib\" SHELL=/usr/coreutils/bin/bash"
}
}
}
stage('findcall_floss-3.0') {
steps {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_FIRST_LIB_PATH=/usr/local-ssl3.0/lib:/usr/local/lib']) {
sh 'findcall_floss || echo "Ignoring results"'
}
}
}
stage('test-3.0') {
when {
expression {
return runTests;
}
}
steps {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_FIRST_LIB_PATH=/usr/local-ssl3.0/lib:/usr/local/lib']) {
sh "/usr/coreutils/bin/make -k test V=1 CFLAGS=\"-g -O2 -Winline -I/usr/local-ssl3.0/include -I/usr/coreutils/include -I${expatRoot}/include\" LDFLAGS=\"/usr/coreutils/lib/libz.a -L/usr/local-ssl3.0/lib -L/usr/coreutils/lib -L${expatRoot}/lib\" TEST_LINT= SHELL=/usr/coreutils/bin/bash || echo \"Git Test FAILURE, however t9001 and t9020 always fail\""
}
}
}
}
post {
always {
mail bcc: '', body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\nDuration: ${currentBuild.durationString}\nChange: ${currentBuild.changeSets}\n More info at: ${env.BUILD_URL}", cc: '', from: '[email protected]', replyTo: '', subject: "[Jenkins TCMVNS] ${currentBuild.currentResult}: job ${env.JOB_NAME}", to: '[email protected]'
}
}
}