-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
47 lines (37 loc) · 1.2 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
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2025-07'
library "knime-pipeline@$BN"
properties([
pipelineTriggers([upstream(
'knime-core/' + env.BRANCH_NAME.replaceAll('/', '%2F')
)]),
parameters(workflowTests.getConfigurationsAsParameters()),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
try {
buildConfigs = [
Tycho: {
knimetools.defaultTychoBuild(updateSiteProject: 'org.knime.update.core.ui')
},
UnitTests: {
workflowTests.runIntegratedWorkflowTests(
configurations: workflowTests.DEFAULT_FEATURE_BRANCH_CONFIGURATIONS,
profile: "test"
)
}
]
node('maven && java17 && large') {
parallel buildConfigs
// junit '**/test-results/junit.xml'
stage('Sonarqube analysis') {
workflowTests.runSonar(withOutNode: true)
}
owasp.sendNodeJSSBOMs(readMavenPom(file: 'pom.xml').properties['revision'])
}
} catch (ex) {
currentBuild.result = 'FAILURE'
throw ex
} finally {
notifications.notifyBuild(currentBuild.result);
}