-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
44 lines (39 loc) · 1.11 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
pipeline {
agent any
environment {
BRANCH = "master"
}
triggers {
cron('0 8 * * 1')
}
options {
skipDefaultCheckout true
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Dtrack') {
steps {
script {
// sh 'pip install cyclonedx-bom'
// sh 'cyclonedx-bom --requirements -i app/requirements.txt'
// dependencyTrackPublisher(
// artifact: 'cyclonedx.xml',
// projectName: 'minimal-project-python',
// projectVersion: 'app',
// )
sh "npm install"
sh "npx @cyclonedx/[email protected] --include-dev -o bom.xml"
dependencyTrackPublisher(
artifact: "bom.xml",
projectName: "minimal-project-npm",
projectVersion: "npm"
)
}
}
}
}
}