-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
60 lines (54 loc) · 1.71 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
53
54
55
56
57
58
59
60
#!groovy
def BN = (BRANCH_NAME == 'master' || BRANCH_NAME.startsWith('releases/')) ? BRANCH_NAME : 'releases/2025-07'
def repositoryName = 'knime-python-sklearn'
library "knime-pipeline@$BN"
properties([
/*
When changes occur in the upstream jobs (e.g., "knime-python"), this configuration
ensures that dependent jobs (e.g., "knime-python-sklearn") are automatically rebuilt.
Example:
upstream(
'knime-abc/' + env.BRANCH_NAME.replaceAll('/', '%2F') +
', knime-xyz/' + env.BRANCH_NAME.replaceAll('/', '%2F')
)
*/
pipelineTriggers([
upstream('knime-python/' + env.BRANCH_NAME.replaceAll('/', '%2F'))
]),
parameters(
knimetools.getPythonExtensionParameters()
),
buildDiscarder(logRotator(numToKeepStr: '5')),
disableConcurrentBuilds()
])
try {
knimetools.defaultPythonExtensionBuild()
workflowTests.runTests(
dependencies: [
repositories: [
'knime-python',
'knime-python-types',
'knime-core-columnar',
'knime-testing-internal',
'knime-python-legacy',
'knime-conda',
'knime-python-bundling',
'knime-credentials-base',
'knime-gateway',
'knime-base',
'knime-productivity-oss',
'knime-json',
'knime-javasnippet',
'knime-reporting',
'knime-filehandling',
'knime-scripting-editor',
repositoryName
],
],
)
} catch (ex) {
currentBuild.result = 'FAILURE'
throw ex
} finally {
notifications.notifyBuild(currentBuild.result)
}