Repository navigation
chore(QTDI-1553): build-in studio modules release - #1072
Conversation
938c0cd to
702d9fc
Compare
702d9fc to
3940ae1
Compare
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for releasing Studio modules by extending the Jenkins pipeline and providing a dedicated release script.
- Introduces a
RELEASE_STUDIO_MODULESboolean parameter for conditional Studio releases - Adds a new
Release studio modulesstage invoking a shell script under stored credentials - Creates
release-3.1-perform-studio.shto manage Maven version bumps and deployments for Studio
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| ci/Jenkinsfile-release | Added RELEASE_STUDIO_MODULES booleanParam and Release studio modules stage |
| .jenkins/scripts/release/release-3.1-perform-studio.sh | New bash script to set project versions and deploy Studio module artifacts |
Comments suppressed due to low confidence (4)
ci/Jenkinsfile-release:141
- The new
RELEASE_STUDIO_MODULESpipeline logic should be covered by unit or integration tests as required by project standards.
booleanParam(
.jenkins/scripts/release/release-3.1-perform-studio.sh:1
- [nitpick] The script filename embeds a specific version (
3.1), which may require renaming on future releases. Consider a generic name likerelease-studio.sh.
#!/usr/bin/env bash
ci/Jenkinsfile-release:144
- Trim unnecessary indentation inside the multiline description string to improve readability and avoid leading spaces in the UI.
description: '''Activate release of studio modules.
ci/Jenkinsfile-release:410
- Indentation in this multiline string injects leading spaces into the command arguments. Consider using a triple-quoted string or a list form for
shto avoid unintentional whitespace.
sh "bash .jenkins/scripts/release/release-3.1-perform-studio.sh $releaseVersion \
| local nextVersion="${1?Missing actual project version}"; shift | ||
| local extraBuildParams=("$@") | ||
|
|
||
| printf ">> Maven perform release" |
There was a problem hiding this comment.
[nitpick] Using printf without a newline can lead to output buffering issues. Consider adding \n or using echo for a clearer log entry.
| printf ">> Maven perform release" | |
| printf ">> Maven perform release\n" |
| --activate-profiles ${release_profiles} \ | ||
| "${extraBuildParams[@]}" | ||
|
|
||
| mvn versions:set -DnewVersion="${nextVersion}" |
There was a problem hiding this comment.
After bumping to the next development version, the changes are not committed or pushed. Add a Git commit and push step to persist the version update.
| mvn versions:set -DnewVersion="${nextVersion}" | |
| mvn versions:set -DnewVersion="${nextVersion}" | |
| # Commit and push the version update | |
| git add . | |
| git commit -m "chore: bump to next development version ${nextVersion}" | |
| git push |
Requirements
Why this PR is needed?
https://qlik-dev.atlassian.net/browse/QTDI-1553
What does this PR adds (design/code thoughts)?