-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Backbase/wa3-openapi-integration
Wa3 openapi integration
- Loading branch information
Showing
8 changed files
with
697 additions
and
24 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
service-sdk/10.0.0/migrate-to-open-api/messaging-api/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
target/ |
70 changes: 70 additions & 0 deletions
70
service-sdk/10.0.0/migrate-to-open-api/messaging-api/Jenkinsfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/usr/bin/env groovy | ||
|
||
pipeline { | ||
agent any | ||
|
||
tools { | ||
maven 'maven' | ||
nodejs 'node' | ||
} | ||
|
||
environment { | ||
BACKBASE_REGISTRY = "https://repo.backbase.com/api/npm/npm-backbase/" | ||
PUBLISH_REGISTRY = "https://myregistry.backbase.com/" | ||
RELEASE_BRANCH_PATTERN = /^(master|release\/.*)$/ | ||
} | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
script { | ||
sh 'mvn clean compile' | ||
dir('target/generated-sources/openapi') { | ||
sh "npm install --@backbase:registry=${BACKBASE_REGISTRY}" | ||
sh "npm run build" | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Update API') { | ||
when { not { expression { BRANCH_NAME ==~ RELEASE_BRANCH_PATTERN } } } | ||
steps { | ||
script { | ||
dir('typescript-angular-api') { | ||
sh "npm install" | ||
sh "npm run api:extract" | ||
sh "git add ." | ||
gitChanges = sh(returnStatus: true, script: 'git diff --staged --exit-code -- .') | ||
if (gitChanges != 0) { | ||
sh "git commit -m 'Updated typescript API'" | ||
sh "git push origin HEAD:${env.BRANCH_NAME}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Test') { | ||
steps { | ||
script { | ||
dir('typescript-angular-api') { | ||
sh "npm install" | ||
sh "npm run api:check" | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('Deploy') { | ||
when { expression { BRANCH_NAME ==~ RELEASE_BRANCH_PATTERN } } | ||
steps { | ||
script { | ||
dir('target/generated-sources/openapi/dist') { | ||
sh "npm publish --registry ${PUBLISH_REGISTRY}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
...ce-sdk/10.0.0/migrate-to-open-api/messaging-api/typescript-angular-api/api-extractor.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"projectFolder": "../target/generated-sources/openapi", | ||
"mainEntryPointFilePath": "<projectFolder>/dist/public_api.d.ts", | ||
"bundledPackages": [], | ||
"compiler": { | ||
"tsconfigFilePath": "<projectFolder>/tsconfig.json" | ||
}, | ||
"apiReport": { | ||
"enabled": true, | ||
"reportFolder": ".", | ||
"reportTempFolder": "<projectFolder>/temp/" | ||
}, | ||
"docModel": { | ||
"enabled": false | ||
}, | ||
"dtsRollup": { | ||
"enabled": false | ||
}, | ||
"tsdocMetadata": { | ||
"enabled": false | ||
}, | ||
"messages": { | ||
"compilerMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"extractorMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
}, | ||
"ae-missing-release-tag": { | ||
"logLevel": "none", | ||
"addToApiReportFile": false | ||
}, | ||
"ae-forgotten-export": { | ||
"logLevel": "warning", | ||
"addToApiReportFile": true | ||
}, | ||
"ae-incompatible-release-tags": { | ||
"logLevel": "none", | ||
"addToApiReportFile": false | ||
}, | ||
"ae-internal-missing-underscore": { | ||
"logLevel": "none", | ||
"addToApiReportFile": false | ||
}, | ||
"ae-unresolved-inheritdoc-reference": { | ||
"logLevel": "none", | ||
"addToApiReportFile": false | ||
}, | ||
"ae-unresolved-inheritdoc-base": { | ||
"logLevel": "none", | ||
"addToApiReportFile": false | ||
} | ||
}, | ||
"tsdocMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
}, | ||
"tsdoc-unsupported-tag": { | ||
"logLevel": "none" | ||
}, | ||
"tsdoc-undefined-tag": { | ||
"logLevel": "none" | ||
}, | ||
"tsdoc-param-tag-missing-hyphen": { | ||
"logLevel": "none" | ||
}, | ||
"tsdoc-malformed-inline-tag": { | ||
"logLevel": "none" | ||
}, | ||
"tsdoc-escape-right-brace": { | ||
"logLevel": "none" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.