You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
#!groovy
|
|
|
|
library identifier: '3scale-toolbox-jenkins@master',
|
|
retriever: modernSCM([$class: 'GitSCMSource',
|
|
remote: 'https://github.com/nmasse-itix/3scale-toolbox-jenkins.git'])
|
|
|
|
def toolboxConfig = [
|
|
"secretName": params.SECRET_NAME
|
|
]
|
|
def baseSystemName = toolbox.generateRandomBaseSystemName()
|
|
|
|
node() {
|
|
stage('Checkout Source') {
|
|
//git url: "https://github.com/nmasse-itix/API-Lifecycle-Mockup.git"
|
|
checkout scm
|
|
}
|
|
|
|
stage("Get toolbox version") {
|
|
openshift.withCluster() {
|
|
openshift.withProject(params.NAMESPACE) {
|
|
echo "toolbox version = " + toolbox.getToolboxVersion(openshift: openshift)
|
|
}
|
|
}
|
|
}
|
|
|
|
stage("Import OpenAPI") {
|
|
openshift.withCluster() {
|
|
openshift.withProject(params.NAMESPACE) {
|
|
toolbox.importOpenAPI(openshift: openshift,
|
|
destination: params.TARGET_INSTANCE,
|
|
toolboxConfig: toolboxConfig,
|
|
oasFile: "testcase-01/swagger.json",
|
|
baseSystemName: baseSystemName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|