forked from kubernetes-sigs/kind
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Jenkinsfile
28 lines (24 loc) · 1.27 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
@Library('libpipelines') _
hose {
EMAIL = '[email protected]'
BUILDTOOL = 'make'
DEVTIMEOUT = 30
BUILDTOOL_IMAGE = 'golang:1.20'
VERSIONING_TYPE = 'stratioVersion-3-3'
UPSTREAM_VERSION = '0.17.0'
DEPLOYONPRS = true
GRYPE_TEST = true
MODULE_LIST = [ "paas.cloud-provisioner:cloud-provisioner:tar.gz", "paas.cloud-provisioner:upgrade-provisioner:tar.gz" ]
BUILDTOOL_MEMORY_REQUEST = "1024Mi"
BUILDTOOL_MEMORY_LIMIT = "4096Mi"
DEV = { config ->
doPackage(conf: config, parameters: "GOCACHE=/tmp")
doDeploy(conf: config)
doCustomStage(conf:config, buildToolOverride: [CUSTOM_COMMAND: 'mkdir -p CTS/resources; tar zxvf bin/cloud-provisioner.tar.gz -C CTS/resources/; chmod -R 0700 CTS/resources/bin/cloud-provisioner'], stageName: "Extract binary")
doGrypeScan(conf: config, artifactsList: [[path: 'CTS/resources/bin/cloud-provisioner', name: 'cloud-provisioner']])
doAT(conf: config, buildToolOverride: ['BUILDTOOL_IMAGE': 'stratio/cloud-testing-suite:0.1.0-SNAPSHOT', 'BUILDTOOL_PRIVILEGED': true, 'BUILDTOOL_RUNASUSER': "0"], configFiles: [[fileId: "clouds-credentials.yaml", variable: "credentials"]], runOnPR: true)
}
DOC = { config ->
doStratioDocsChecks(conf: config)
}
}