Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .azure/build-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ stages:
dependsOn:
- container_build
- docs_build
condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')))
#condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')))
jobs:
- template: 'templates/jobs/deploy_java.yaml'
parameters:
Expand Down
7 changes: 5 additions & 2 deletions .azure/scripts/push-to-nexus.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/usr/bin/env bash

set -e
#set -e

echo "Build reason: ${BUILD_REASON}"
echo "Source branch: ${BRANCH}"

echo "JAVA_HOME: " ${JAVA_HOME}
mvn -version

function cleanup() {
rm -rf signing.gpg
gpg --delete-keys
Expand All @@ -18,6 +21,6 @@ export GPG_TTY=$(tty)
echo $GPG_SIGNING_KEY | base64 -d > signing.gpg
gpg --batch --import signing.gpg

GPG_EXECUTABLE=gpg mvn $MVN_ARGS -DskipTests -s ./.azure/scripts/settings.xml -P ossrh verify deploy
#GPG_EXECUTABLE=gpg mvn $MVN_ARGS -DskipTests -s ./.azure/scripts/settings.xml -P ossrh verify deploy

cleanup
8 changes: 8 additions & 0 deletions .azure/templates/jobs/deploy_java.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
jobs:
- job: 'deploy_java'
displayName: 'Deploy Java'
# Strategy for the job
strategy:
matrix:
'java-17':
image: 'Ubuntu-22.04'
jdk_version: '17'
main_build: 'true'
# Set timeout for jobs
timeoutInMinutes: 60
# Base system
pool:
vmImage: 'Ubuntu-22.04'
# Pipeline steps
steps:
- template: '../steps/prerequisites/install_java.yaml'
- task: DownloadPipelineArtifact@2
inputs:
source: '${{ parameters.artifactSource }}'
Expand Down
Loading