Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b889e5c
Merge pull request #224 from PublicisSapient/develop
mampacch Mar 18, 2026
578c5ba
updated the pom.xml to 16.2.0-SNAPSHOT
rapkalya Mar 24, 2026
a1ece30
added processore release action workflow
rapkalya Mar 24, 2026
da0a8fc
Merge pull request #225 from PublicisSapient/DTS-52074-TAG-Dockerhub-…
rapkalya Mar 26, 2026
6e7e4e5
testing the tag creation by changing the branch
rapkalya Mar 26, 2026
b1deb0f
hardcoded common branch
rapkalya Mar 26, 2026
7008235
chore(release): 16.3.0
github-actions[bot] Mar 26, 2026
e7304af
updated the common version
rapkalya Mar 26, 2026
0fa78c6
Merge pull request #227 from PublicisSapient/develop
mampacch Mar 26, 2026
be33b76
updated the path
rapkalya Mar 26, 2026
e836c2c
updated azure pipeline repo file path
rapkalya Mar 26, 2026
b3a1781
chore: bump version to 16.4.0-SNAPSHOT
github-actions[bot] Mar 26, 2026
7c41483
Merge pull request #229 from PublicisSapient/develop
mampacch Apr 6, 2026
cc500c9
updated the branch
rapkalya Apr 6, 2026
c978c87
Merge branch 'DTS-52074-TAG-Dockerhub-Push' of https://github.com/Pub…
rapkalya Apr 6, 2026
7be3747
git version revert
rapkalya Apr 6, 2026
7f6c334
reverted common verison
rapkalya Apr 6, 2026
a0bd484
Merge branch 'master' of https://github.com/PublicisSapient/knowhow-p…
rapkalya Apr 6, 2026
70f0525
Merge pull request #230 from PublicisSapient/DTS-52074-TAG-Dockerhub-…
rapkalya Apr 6, 2026
71a8ea2
Merge pull request #232 from PublicisSapient/develop
kunalaski Apr 23, 2026
b596827
Merge branch 'master' into qa-master-backup-30042026
prabasak23 Apr 30, 2026
d4fcf8f
Merge pull request #234 from PublicisSapient/qa-master-backup-30042026
ananthpal Apr 30, 2026
2440a4e
Merge pull request #233 from PublicisSapient/qa-master
rapkalya Apr 30, 2026
fa05a28
updated common version during release
rapkalya May 6, 2026
2b928ae
Merge pull request #235 from PublicisSapient/change-common-version-du…
rapkalya May 6, 2026
ce3272f
chore(release): 17.0.0
github-actions[bot] May 6, 2026
1d0e2ad
chore: bump version to 17.1.0-SNAPSHOT
github-actions[bot] May 6, 2026
9acf01c
chore(release): 17.1.0
github-actions[bot] May 19, 2026
7d54f78
chore: bump version to 17.2.0-SNAPSHOT
github-actions[bot] May 19, 2026
fca6122
Update common dependency version to 17.2.0-SNAPSHOT
rapkalya May 19, 2026
c01124c
updated sprint start and end date check
kunkambl May 20, 2026
ba13945
updated sprint start and end date check
kunkambl May 20, 2026
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
250 changes: 250 additions & 0 deletions .github/workflows/Processors_Release_Tag_and_dockerhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
name: Release - Tag from master + Docker Hub Push

on:
workflow_dispatch:
inputs:
tag_version:
description: "Release tag/version to create (e.g., 16.1.0)"
required: true
type: string
next_dev_version:
description: "Next development version after tagging (e.g., 16.1.1-SNAPSHOT)"
required: true
type: string
push_to_dockerhub:
description: "Push Docker image to Docker Hub? Push only during major and minor releases (e.g., 16.0.0 or 16.1.0), not for patch releases (e.g., 16.1.1)"
required: true
type: choice
options:
- "no"
- "yes"
default: "no"

permissions:
contents: write

env:
JIRA_NAME: knowhow-processors-jira
JIRA_XRAY_ZEPHYR_SQUAD_NAME: knowhow-processors-jira-xray-zephyr-squad
JIRA_ZEPHYR_SCALE_NAME: knowhow-processors-jira-zephyr-scale
DEVOPS_NAME: knowhow-processors-devops-processor
AZUREBOARD_NAME: knowhow-processors-azure-boards
AZUREPIPELINE_NAME: knowhow-processors-azure-pipeline-repo-processor
RALLY_NAME: knowhow-processors-rally
SCM_NAME: knowhow-processors-knowhow-scm-processor
DATA_PROCESSOR_NAME: knowhow-processors-data-processor
DOCKERHUB_ORG: psknowhow
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} # without .azurecr.io
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

jobs:
tag_build_optional_push:
name: Tag, Build, Optional Docker Hub Push
runs-on: ubuntu-latest
timeout-minutes: 40

steps:
- name: Checkout master
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0

- name: Set up Git identity (for commits/tags)
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Set Up Java 17
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "maven"

# Optional: Configure Maven to use GitHub Packages (keep if you need private deps)
- name: Configure Maven settings.xml for GitHub Packages
if: ${{ inputs.push_to_dockerhub == 'yes' }}
run: |
mkdir -p ~/.m2
cat > ~/.m2/settings.xml <<'EOF'
<settings>
<servers>
<server>
<id>github</id>
<username>${{ github.actor }}</username>
<password>${{ secrets.MAVEN_TOKEN }}</password>
</server>
</servers>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/PublicisSapient/knowhow-ai-gateway-client</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
</settings>
EOF

# Optional: Clone & build knowhow-common if your build requires it
- name: Clone & Build knowhow-common
if: ${{ inputs.push_to_dockerhub == 'yes' }}
run: |
echo "Cloning knowhow-common branch outside the main repo workspace"
git clone --branch "${{ inputs.tag_version }}" https://github.com/PublicisSapient/knowhow-common.git /tmp/knowhow-common
cd /tmp/knowhow-common && mvn clean install -DskipTests

- name: Set project version to release
run: |
mvn -B -ntp versions:set \
-DnewVersion="${{ inputs.tag_version }}" \
-DprocessAllModules=true \
-DgenerateBackupPoms=false

- name: Update common dependency to release version
run: |
mvn -B -ntp versions:use-dep-version \
-Dincludes=com.publicissapient.kpidashboard:common \
-DdepVersion="${{ inputs.tag_version }}" \
-DforceVersion=true \
-DprocessAllModules=true \
-DgenerateBackupPoms=false

- name: Commit release version change
run: |
git add -A
git commit -m "chore(release): ${{ inputs.tag_version }}" || echo "No changes to commit"

- name: Create annotated git tag
run: |
git tag -a "${{ inputs.tag_version }}" -m "Release ${{ inputs.tag_version }}"

- name: Push commit + tag to origin/master
run: |
# avoid staging a submodule path accidentally if knowhow-common exists in the superproject
git restore --staged knowhow-common || true
git restore knowhow-common || true
git push origin master
git push origin --follow-tags

- name: Build jar skip tests
if: ${{ inputs.push_to_dockerhub == 'yes' }}
run: |
mvn clean install -Ddockerfile.skip=true -DskipTests

- name: Set up Docker Buildx
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/setup-buildx-action@v3

- name: Docker login (Docker Hub)
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push JIRA Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: jira/
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.JIRA_NAME }}:${{ inputs.tag_version }}

- name: Build and push DevOps Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: .
file: devops-processor-startup/Dockerfile
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.DEVOPS_NAME }}:${{ inputs.tag_version }}

- name: Build and push Rally Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: rally/
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.RALLY_NAME }}:${{ inputs.tag_version }}

- name: Build and push JIRA Zephyr scale Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: jira-zephyr-scale/
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.JIRA_ZEPHYR_SCALE_NAME }}:${{ inputs.tag_version }}

- name: Build and push JIRA Zephyr Squad Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: jira-xray-zephyr-squad/
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.JIRA_XRAY_ZEPHYR_SQUAD_NAME }}:${{ inputs.tag_version }}

- name: Build and push Azure Board Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: azure-boards/
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.AZUREBOARD_NAME }}:${{ inputs.tag_version }}

- name: Build and push Azure Pipeline Repo Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: .
file: azure-pipeline-repo-processor-startup/Dockerfile
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.AZUREPIPELINE_NAME }}:${{ inputs.tag_version }}

- name: Build and push SCM Processor Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: knowhow-scm-processor/
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.SCM_NAME }}:${{ inputs.tag_version }}

- name: Build and push Data Processor Docker image to Docker Hub
if: ${{ inputs.push_to_dockerhub == 'yes' }}
uses: docker/build-push-action@v6
with:
context: data-processor/
push: ${{ inputs.push_to_dockerhub == 'yes' }}
tags: |
${{ env.DOCKERHUB_ORG }}/${{ env.DATA_PROCESSOR_NAME }}:${{ inputs.tag_version }}

- name: Bump to next development version
run: |
mvn -B -ntp versions:set \
-DnewVersion="${{ inputs.next_dev_version }}" \
-DprocessAllModules=true \
-DgenerateBackupPoms=false

- name: Commit next development version bump
run: |
git add -A
git commit -m "chore: bump version to ${{ inputs.next_dev_version }}" || echo "No changes to commit"

- name: Push next development version commit to origin/master
run: |
git push origin master
2 changes: 1 addition & 1 deletion argocd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>argocd-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion azure-boards/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>azure-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion azure-pipeline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>azurepipeline-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion azure-repo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>azurerepo-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bamboo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>bamboo-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bitbucket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>bitbucket-processor</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions data-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>data-processor</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<description>Microservice used for preparing, enriching and storing data used by the AI components of the platform</description>
<properties>
<final.name>data-processor</final.name>
Expand Down
2 changes: 1 addition & 1 deletion github-action/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>githubaction-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion github/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>github-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gitlab/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>gitlab-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jenkins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>jenkins-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jira-xray-zephyr-squad/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>jiratest-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jira-zephyr-scale/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>zephyr-processor</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jira/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>com.publicissapient.kpidashboard</groupId>
<artifactId>processors</artifactId>
<version>16.1.0</version>
<version>17.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>jira-processor</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.util.Set;
import java.util.stream.Collectors;

import org.apache.commons.lang3.StringUtils;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
Expand Down Expand Up @@ -69,7 +70,8 @@ public Map<String, List<String>> execute(ObjectId basicProjectConfigId) {
SprintDetails currentSprint = projectSprints.get(i);
SprintDetails nextSprint = projectSprints.get(i + 1);

if (currentSprint.getEndDate() == null || nextSprint.getStartDate() == null) {
if (StringUtils.isEmpty(currentSprint.getEndDate())
|| StringUtils.isEmpty(nextSprint.getStartDate())) {
continue; // Skip comparison if either date is null
}

Expand Down
Loading
Loading