forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
37 lines (33 loc) · 1.45 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
// https://github.com/Rudd-O/shared-jenkins-libraries
@Library('shared-jenkins-libraries@master') _
def srpm_step() {
return {
script {
env.GIT_HASH = sh (
script: "git rev-parse --short HEAD",
returnStdout: true
).trim()
println "Git hash is reported as ${env.GIT_HASH}"
sh (
script: """
./autogen.sh
sed "s/_META_RELEASE=.*/_META_RELEASE=0.${env.BUILD_NUMBER}.${env.GIT_HASH}/" -i configure
./configure --with-config=user
make srpm-dkms srpm-utils
""",
label: "configure for source RPM"
)
}
}
}
def integration_step() {
return {
build job: "zfs-fedora-installer/master", parameters: [[$class: 'StringParameterValue', name: 'UPSTREAM_PROJECT', value: "zfs/${currentBuild.projectName}"], [$class: 'StringParameterValue', name: 'BUILD_FROM_RPMS', value: "yes"], [$class: 'StringParameterValue', name: 'BUILD_FROM_SOURCE', value: "no"], [$class: 'StringParameterValue', name: 'SOURCE_BRANCH', value: "master"], [$class: 'StringParameterValue', name: 'RELEASE', value: "${env.FEDORA_RELEASES}"]]
}
}
genericFedoraRPMPipeline(
null,
srpm_step(),
['autoconf', 'automake', 'libtool', 'zlib-devel', 'libuuid-devel', 'libtirpc-devel', 'libblkid-devel', 'openssl-devel'],
integration_step(),
)