Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTM-56708 realese of java-sdk component independent of cumulocity component #434

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .jenkins/github/platform-management-sdk-tests.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ pipeline {
.any {env.ghprbSourceBranch.startsWith(it)}) {
// for versions 10.18 and before sdk is a part of cumulocity component
systemVersion = GetVersionFromSourceBranch('cumulocity')
} else if (env.ghprbSourceBranch.contains('java-sdk')) {
// when run for java-sdk component, take the version from its descriptor
systemVersion = GetVersionFromSourceBranch('java-sdk')
} else if (env.ghprbSourceBranch.contains('cumulocity')) {
// when run for cumulocity component, take the version from staging approved branch
systemVersion = GetVersionFromSourceBranch('java-sdk', env.ghprbSourceBranch.split('/')[0] + '/Staging-Approved')
} else {
// otherwise runs for cumulocity component and is not yet independently
// released, so keep taking the version of cumulocity component
systemVersion = GetVersionFromSourceBranch('cumulocity')
// otherwise runs for java-sdk component or staging, take the version from its descriptor
systemVersion = GetVersionFromSourceBranch('java-sdk')
}
}
echo "Running tests for platform version ${systemVersion} on ${testInstanceDomain}"
Expand Down