Skip to content

Commit

Permalink
Explicitly enable develocity extensions in pipeline and workflow only
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed Jan 23, 2025
1 parent 89fd2f8 commit c3b9838
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: |
curl.exe -o ./apache-maven-3.9.9-bin.zip https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.zip
tar -xf ./apache-maven-3.9.9-bin.zip
- name: Use develocity extensions
run: cp .mvn/develocity-extensions.xml .mvn/extensions.xml
- name: Build with Maven
# qa skips documentation - we check it on Jenkins CI
# We skip checkstyle too - we check it on Jenkins CI
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def generateAntPodTemplate(job) {
withAnt(installation: 'apache-ant-latest') {
dumpSysInfo()
withVault([vaultSecrets: secrets]) {
sh 'cp .mvn/develocity-extensions.xml .mvn/extensions.xml || true'
sh """
mkdir -p ${WORKSPACE}/appserver/tests
tar -xzf ${WORKSPACE}/bundles/appserv_tests.tar.gz -C ${WORKSPACE}/appserver/tests
Expand Down Expand Up @@ -201,6 +202,7 @@ spec:
container('maven') {
dumpSysInfo()
withVault([vaultSecrets: secrets]) {
sh 'cp .mvn/develocity-extensions.xml .mvn/extensions.xml || true'
sh '''
# Validate the structure in all submodules (especially version ids)
mvn -B -e -fae clean validate -Ptck,set-version-id,staging
Expand All @@ -227,6 +229,7 @@ spec:
dumpSysInfo()
timeout(time: 1, unit: 'HOURS') {
withVault([vaultSecrets: secrets]) {
sh 'cp .mvn/develocity-extensions.xml .mvn/extensions.xml || true'
sh '''
mvn -B -e clean install -Pstaging,qa
'''
Expand Down Expand Up @@ -264,6 +267,7 @@ spec:
dumpSysInfo()
timeout(time: 1, unit: 'HOURS') {
withVault([vaultSecrets: secrets]) {
sh 'cp .mvn/develocity-extensions.xml .mvn/extensions.xml || true'
sh '''
mvn -B -e clean install -Pstaging -f docs -amd
'''
Expand Down

0 comments on commit c3b9838

Please sign in to comment.