-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
53 lines (52 loc) · 1.83 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 {
agent any
/* environment {
GITHUB_AUTH_TOKEN = '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'
}*/
stages {
stage('Clone') {
steps {
sh 'git clone https://github.com/NixOS/nixpkgs.git'
sh 'git clone https://github.com/tiiuae/nixpkgs-spectrum.git'
sh 'git clone https://github.com/tiiuae/spectrum.git'
}
}
stage('Get-depcheck') {
steps {
sh 'wget https://github.com/jeremylong/DependencyCheck/releases/download/v7.1.1/dependency-check-7.1.1-release.zip'
sh 'unzip -n dependency-check-7.1.1-release.zip'
}
}
stage ('prep-env') {
steps {
sh 'mkdir -p reports/nixpkgs'
sh 'mkdir -p reports/spectrum'
sh 'mkdir -p reports/nixpkgs-spectrum'
}
}
stage('Dep-Check') {
parallel {
stage('Dep-Check-nixpkgs') {
steps {
sh 'dependency-check/bin/dependency-check.sh --project "NixPkgs" --scan "nixpkgs/" --out ./reports/nixpkgs'
}
}
stage('Dep-Check-Spectrum') {
steps {
sh 'dependency-check/bin/dependency-check.sh --project "Spectrum" --scan "spectrum/" --out ./reports/spectrum'
}
}
stage('Dep-Check-nixpkgs-spectrum') {
steps {
sh 'dependency-check/bin/dependency-check.sh --project "NixPkgs-Spectrum" --scan "nixpkgs-spectrum" --out ./reports/nixpkgs-spectrum'
}
}
}
}
}
post {
always {
archiveArtifacts artifacts: './reports/*'
}
}
}