forked from SUSE/susemanager-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuyuni-features-indexer
32 lines (31 loc) · 1.3 KB
/
uyuni-features-indexer
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
#!/usr/bin/env groovy
node('sumadocker-nue') {
stage('Clone project') {
sh 'rm -rf uyuni'
sh 'git clone --depth 1 --no-checkout --branch master https://github.com/uyuni-project/uyuni.git'
sh 'cd uyuni; git sparse-checkout init --cone; git sparse-checkout set testsuite; git checkout'
}
stage('Prepare Feature Indexer') {
dir('indexer'){
checkout([
$class: 'GitSCM',
branches: [[name: "stable"]],
extensions: [[$class: 'CloneOption', depth: 1, shallow: true]],
userRemoteConfigs: [[refspec: '+refs/pull/*/head:refs/remotes/origin/pr/*', url: "https://codeberg.org/japh/Feature_Indexer.git"]]
])
sh "perl Makefile.PL; make"
}
}
stage('Generate Index') {
sh "perl indexer/build/gfindex --md --html --dir uyuni/testsuite/features"
publishHTML( target: [
allowMissing: true,
alwaysLinkToLastBuild: false,
keepAll: true,
reportDir: "uyuni/testsuite/features",
reportFiles: 'index.html',
reportName: "Features Index"]
)
archiveArtifacts artifacts: 'uyuni/testsuite/features/index.md'
}
}