Skip to content

chore(QTDI-1553): build-in studio modules release - #1072

Merged
ozhelezniak-talend merged 3 commits into
masterfrom
ozhelezniak/QTDI-1553_build-in-release
Jul 10, 2025
Merged

ozhelezniak-talend merged 3 commits into
masterfrom
ozhelezniak/QTDI-1553_build-in-release

Conversation

@ozhelezniak-talend

Copy link
Copy Markdown
Contributor

Requirements

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

https://qlik-dev.atlassian.net/browse/QTDI-1553

What does this PR adds (design/code thoughts)?

@ozhelezniak-talend
ozhelezniak-talend force-pushed the ozhelezniak/QTDI-1553_build-in-release branch from 938c0cd to 702d9fc Compare July 10, 2025 07:57

This comment was marked as outdated.

@ozhelezniak-talend
ozhelezniak-talend force-pushed the ozhelezniak/QTDI-1553_build-in-release branch from 702d9fc to 3940ae1 Compare July 10, 2025 08:01
@sonar-eks

This comment has been minimized.

1 similar comment
@sonar-eks

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_MODULES boolean parameter for conditional Studio releases
  • Adds a new Release studio modules stage invoking a shell script under stored credentials
  • Creates release-3.1-perform-studio.sh to 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_MODULES pipeline 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 like release-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 sh to 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"

Copilot AI Jul 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Using printf without a newline can lead to output buffering issues. Consider adding \n or using echo for a clearer log entry.

Suggested change
printf ">> Maven perform release"
printf ">> Maven perform release\n"

Copilot uses AI. Check for mistakes.
--activate-profiles ${release_profiles} \
"${extraBuildParams[@]}"

mvn versions:set -DnewVersion="${nextVersion}"

Copilot AI Jul 10, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
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

Copilot uses AI. Check for mistakes.
@sonar-eks

sonar-eks Bot commented Jul 10, 2025

Copy link
Copy Markdown

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (65.90% Estimated after merge)
  • Duplications No duplication information (1.40% Estimated after merge)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

@undx undx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@acatoire acatoire left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ozhelezniak-talend
ozhelezniak-talend merged commit 6e5dd86 into master Jul 10, 2025
@ozhelezniak-talend
ozhelezniak-talend deleted the ozhelezniak/QTDI-1553_build-in-release branch July 10, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants