Skip to content

Added publish release candidates artifacts #86

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .azure/build-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ stages:
displayName: Deploy Java
dependsOn:
- run_systemtests
condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')))
# Deploy Strimzi Java artifacts -> run only on main branch (where it deploys to OSS snapshot repos)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment correct? I thought we weren't pushing to a snapshot repo anymore?

Copy link
Member

Choose a reason for hiding this comment

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

For main branch it pushes the SNAPSHOT every time, that's how it is done also in other repos.

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't have staging repo anymore but the SNAPSHOTs coming from the main branch are still pushed.

condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/main'))
jobs:
- template: 'templates/jobs/deploy_java.yaml'
parameters:
Expand Down
17 changes: 10 additions & 7 deletions .azure/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ stages:
jobs:
- job: 'release_artifacts'
displayName: 'Release Artifacts'
strategy:
matrix:
'java-17':
image: 'Ubuntu-22.04'
jdk_version: '17'
# Set timeout for jobs
timeoutInMinutes: 60
# Base system
Expand All @@ -45,8 +40,6 @@ stages:
# Pipeline steps
steps:
- template: 'templates/steps/prerequisites/install_java.yaml'
parameters:
JDK_VERSION: $(jdk_version)
- template: "templates/steps/prerequisites/install_helm.yaml"
- bash: ".azure/scripts/release-artifacts.sh"
env:
Expand All @@ -55,6 +48,16 @@ stages:
RELEASE_VERSION: '${{ parameters.releaseVersion }}'
MVN_ARGS: '-B'
displayName: "Prepare release artifacts"
# Deploy Java artifacts
- bash: "./.azure/scripts/push-to-central.sh"
env:
MVN_ARGS: "-e -V -B"
BUILD_REASON: $(Build.Reason)
BRANCH: $(Build.SourceBranch)
GPG_PASSPHRASE: $(GPG_PASSPHRASE)
GPG_SIGNING_KEY: $(GPG_SIGNING_KEY)
CENTRAL_USERNAME: $(CENTRAL_USERNAME)
CENTRAL_PASSWORD: $(CENTRAL_PASSWORD)
- publish: $(System.DefaultWorkingDirectory)/strimzi-access-operator-${{ parameters.releaseVersion }}.tar.gz
artifact: ReleaseTarGzArchive
- publish: $(System.DefaultWorkingDirectory)/strimzi-access-operator-${{ parameters.releaseVersion }}.zip
Expand Down
2 changes: 1 addition & 1 deletion .azure/templates/steps/prerequisites/install_java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:
steps:
- task: JavaToolInstaller@0
inputs:
versionSpec: $(JDK_VERSION)
versionSpec: ${{ parameters.JDK_VERSION }}
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
displayName: 'Configure Java'