Skip to content

Commit 7f88cef

Browse files
committed
[XEN-3141] fix the missing secrets for CI/CD
1 parent 5b92a4e commit 7f88cef

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: CI
33
on:
44
push:
55
pull_request:
6+
env:
7+
GRADLE_OPTS: >-
8+
-Dorg.gradle.project.org.alfresco.maven.nexus.username=${{ secrets.ALFRESCO_NEXUS_USERNAME }}
9+
-Dorg.gradle.project.org.alfresco.maven.nexus.password=${{ secrets.ALFRESCO_NEXUS_PASSWORD }}
610
711
jobs:
812
test:

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ def copyPropertyValueIfExists(sourcePropertyName, targetPropertyName) {
7676
allprojects { Project p ->
7777
group = 'eu.xenit.alfresco'
7878

79-
// It is not possible to set properties with a dot via GitHub Actions env variables, therefore we introduce support
80-
// for a non-dotted-equivalent
8179
copyPropertyValueIfExists('alfresco_nexus_username', 'org.alfresco.maven.nexus.username')
8280
copyPropertyValueIfExists('alfresco_nexus_password', 'org.alfresco.maven.nexus.password')
8381
copyPropertyValueIfExists('xenit_docker_registry_url', 'eu.xenit.docker.registry.url')
@@ -96,8 +94,8 @@ allprojects { Project p ->
9694
maven {
9795
url 'https://artifacts.alfresco.com/nexus/content/groups/private'
9896
credentials {
99-
username project.property('org.alfresco.maven.nexus.username')
100-
password project.property('org.alfresco.maven.nexus.password')
97+
username rootProject.property('org.alfresco.maven.nexus.username')
98+
password rootProject.property('org.alfresco.maven.nexus.password')
10199
}
102100
}
103101
}

0 commit comments

Comments
 (0)