From 3e213e1f8fa885c4afa94b0abdf2b6b50aae9e01 Mon Sep 17 00:00:00 2001 From: Benjamin Van der Smissen Date: Tue, 13 Jun 2023 11:07:29 +0200 Subject: [PATCH] ALFREDAPI-522 [Update] credentials of CS legacy repo in ci-build --- .github/workflows/ci.yml | 2 ++ build.gradle | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 396486f5..d0ce657c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ on: env: ALFRESCO_NEXUS_USERNAME: ${{ secrets.ALFRESCO_NEXUS_USERNAME }} ALFRESCO_NEXUS_PASSWORD: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }} + CLOUDSMITH_USER: ${{ secrets.CLOUDSMITH_USER }} + CLOUDSMITH_APIKEY: ${{ secrets.CLOUDSMITH_APIKEY }} jobs: BuildAndPublish: strategy: diff --git a/build.gradle b/build.gradle index 8c14f3a8..a183e05e 100644 --- a/build.gradle +++ b/build.gradle @@ -75,7 +75,13 @@ subprojects { repositories { mavenCentral() maven { url "https://artifacts.alfresco.com/nexus/content/groups/public" } - maven { url "https://cloudsmith.io/~xenit/repos/legacy/setup/?auth_method=basic_token#formats-maven" } + maven { + url "https://cloudsmith.io/~xenit/repos/legacy/setup/?auth_method=basic_token#formats-maven" + credentials { + username System.env.CLOUDSMITH_USER ?: property('eu.xenit.cloudsmith.username') + password System.env.CLOUDSMITH_APIKEY ?: property('eu.xenit.cloudsmith.password') + } + } // This private repository provides Xenit with Alfresco enterprise artefacts. // External developers should replace it with their own library repository. maven {