-
Notifications
You must be signed in to change notification settings - Fork 7
/
Jenkinsfile
34 lines (32 loc) · 1.32 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
@Library('libpipelines') _
hose {
EMAIL = 'genai'
DEVTIMEOUT = 60
RELEASETIMEOUT = 60
BUILDTOOL = 'make'
BUILDTOOL_IMAGE = 'stratio/python-builder-3.9:1.0.0'
BUILDTOOL_CPU_LIMIT = '8'
BUILDTOOL_CPU_REQUEST = '2'
PYTHON_MODULE = true
GRYPE_TEST = false
LABEL_CONTROL = true
DEPLOYONPRS = false
DEV = { config ->
doCompile(config)
doUT(config)
doStaticAnalysis(
conf: config,
sonarAdditionalProperties: [
"sonar.language": "py",
"sonar.python.version": "3.9",
"sonar.sources": ".",
"sonar.exclusions": "*/tests/**,*/scripts/**,*/pytest-coverage.xml",
"sonar.tests": ".",
"sonar.test.inclusions": "*/tests/**",
"sonar.python.coverage.reportPaths": "example-chain-basic-actor/pytest-coverage.xml,example-chain-chat-memory/pytest-coverage.xml,example-chain-opensearch/pytest-coverage.xml,example-chain-virtualizer/pytest-coverage.xml",
"sonar.python.pylint.reportPaths": "example-chain-basic-actor/pylint-report.txt,example-chain-chat-memory/pylint-report.txt,example-chain-opensearch/pylint-report.txt,example-chain-virtualizer/pylint-report.txt",
"sonar.scm.disabled": "true"
]
)
}
}