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

9.3.0.6 cust 277 hnc 578 #9240

Draft
wants to merge 8 commits into
base: 9.3.0.6-CUST-277
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/artifacts-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# If the release version is something like 9.5.1.0-123, the below structure will become
# 9.5-Releases:
# 9.5.1.0:
# ee:
# plugins:
# - hierarchical-datatype-plugin-9.5.1.0-123.zip

${SHORT_VERSION}-Releases:
${RELEASE_VERSION}:
- kettle-core-${RELEASE_VERSION}.jar
24 changes: 24 additions & 0 deletions .github/workflows/cust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CUST workflow
on:
workflow_dispatch:
inputs:
modules_to_build:
required: true
description: "The modules to build when running from the root of the project."
slack_channels:
required: false
description: 'Slack channels where to send notificatons to'

jobs:

reusable-merge-workflow:
uses: pentaho/actions-common/.github/workflows/merge.yml@HNC-578
with:
version: "${{ github.ref_name }}"
base_version: ""
slack_channels: "${{ inputs.slack_channels }}"
sonar_project_key: "org.pentaho.di:pdi"
modules_to_build: ${{ inputs.modules_to_build }}
run_snapshot: false
run_versioning: false
secrets: inherit
65 changes: 65 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Release workflow
on:
workflow_dispatch:
inputs:
release_version:
required: true
description: "The version to be released"
type: string
arti_host:
required: false
type: string
default: https://one.hitachivantara.com
description: "Artifactory's Host name"
box_upload:
type: boolean
default: true
description: "Box upload."
create_release_bundle:
type: boolean
default: true
description: "Create Release Bundle."
promote_artifacts:
type: boolean
default: true
description: "Promote artifacts in Artifactory."
dry_run:
type: boolean
default: true
description: "Dry run. No real changes should occur."
release_bundle_name:
description: "Release Bundle Name"
required: true
type: string
release_bundle_version:
description: "Release Bundle Version"
required: true
type: string
signing_key_name:
description: "The GPG/RSA key-pair name given in Artifactory."
required: true
type: string
release_method:
description: "Source type to create release bundle (i.e artifacts or builds)."
required: true
default: artifacts
type: choice
options:
- artifacts
- builds

jobs:
release:
uses: pentaho/actions-common/.github/workflows/release.yml@HNC-578
with:
release_version: ${{ inputs.release_version }}
box_upload: ${{ inputs.box_upload }}
create_release_bundle: ${{ inputs.create_release_bundle}}
arti_host: ${{ inputs.arti_host }}
dry_run: ${{ inputs.dry_run }}
promote_artifacts: ${{ inputs.promote_artifacts }}
release_bundle_name: ${{ inputs.release_bundle_name }}
release_bundle_version: ${{ inputs.release_bundle_version }}
signing_key_name: ${{ inputs.signing_key_name }}
release_method: ${{ inputs.release_method }}
secrets: inherit
36 changes: 35 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</licenses>

<properties>
<!--jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version-->
<maven.build.timestamp.format>yyyy-MM-dd hh.mm.ss</maven.build.timestamp.format>
<maven-surefire-plugin.argLine>-Duser.timezone=UTC -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Djava.locale.providers=COMPAT,SPI</maven-surefire-plugin.argLine>

Expand Down Expand Up @@ -318,6 +319,40 @@
<module>assemblies</module>
</modules>
</profile>
<profile>
<id>cicd-release</id>
<build>
<plugins>
<plugin>
<groupId>org.jfrog.buildinfo</groupId>
<artifactId>artifactory-maven-plugin</artifactId>
<version>3.6.1</version>
<executions>
<execution>
<id>build-info</id>
<goals>
<goal>publish</goal>
</goals>
<configuration>
<buildInfo>
<buildName>${build.name}</buildName>
<buildNumber>${build.number}</buildNumber>
<buildUrl>${env.JFROG_CLI_BUILD_URL}</buildUrl>
</buildInfo>
<publisher>
<contextUrl>${env.ARTIFACTORY_BASE_URL}/</contextUrl>
<username>${env.NEXUS_DEPLOY_USER}</username>
<password>${env.NEXUS_DEPLOY_PASSWORD}</password>
<repoKey>${env.PUBLIC_RELEASE_REPO}</repoKey>
<snapshotRepoKey>${env.PUBLIC_SNAPSHOT_REPO}</snapshotRepoKey>
</publisher>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>


Expand Down Expand Up @@ -351,5 +386,4 @@
</pluginRepository>
</pluginRepositories>


</project>
6 changes: 6 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sonar.sources=.
sonar.inclusions=**/src/main/**
sonar.tests=.
sonar.test.inclusions=**/src/test/**
sonar.java.binaries=**/target/classes
sonar.coverage.jacoco.xmlReportPaths=**/jacoco.xml,**/jacocoTestReport.xml