-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.openssl.openssl-3.3.tcmvns
69 lines (68 loc) · 2.95 KB
/
Jenkinsfile.openssl.openssl-3.3.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
/* OpenSSL 3.3.x Monitor Changes to Catch Breakages - TNS/X Pipeline */
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
triggers {
pollSCM('H 2,4 * * *')
}
stages {
stage('checkout') {
steps {
checkout([$class: 'GitSCM',
branches: [[name: 'master']], /* To be changed to openssl-3.3 on release. */
extensions: [
[$class: 'CleanBeforeCheckout']],
doGenerateSubmoduleConfigurations: false, extensions: [
[$class: 'CleanCheckout'],
[$class: 'CloneOption', timeout: 120, shallow: true],
[$class: 'CheckoutOption', timeout: 120],
],
userRemoteConfigs: [[url: 'https://github.com/openssl/openssl.git']]])
}
}
stage('tell') {
steps() {
mail bcc: '', body: "STARTED: 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] STARTED: job ${env.JOB_NAME}", to: '[email protected]'
}
}
stage('config') {
steps() {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/local/lib']) {
sh './Configure nonstop-nsx_64 --with-rand-seed=rdcpu enable-fips'
}
}
}
stage('build') {
steps {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=:/usr/local/lib']) {
sh 'make'
}
}
}
stage('test') {
steps {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/local/lib']) {
sh 'OPENSSL_MODULES=${WORKSPACE}/providers _RLD_FIRST_LIB_PATH=${WORKSPACE}:/usr/local/lib make -j4 V=1 test'
}
}
}
stage('cleanup') {
steps {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=:/usr/local/lib']) {
sh 'make clean'
}
}
}
}
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]'
}
}
}