From 42173a749bfd5024c1c71802ba08911d39b9fdc4 Mon Sep 17 00:00:00 2001 From: Ryan Richter Date: Wed, 17 Jul 2024 08:23:07 -0400 Subject: [PATCH] (#230) Add ChocolateyCore Repository Jenkins Job Add new Update ChocolateyCore Repository Jenkins Job Add test to check for new Jenkins job Signed-off-by: Ryan Richter --- .../builds/legacyIds | 0 .../builds/permalinks | 2 + .../config.xml | 43 +++++++++++++++++++ .../nextBuildNumber | 1 + .../Update production repository/config.xml | 14 ------ tests/jenkins.test.ps1 | 4 ++ 6 files changed, 50 insertions(+), 14 deletions(-) create mode 100644 jenkins/Update ChocolateyCore Repository/builds/legacyIds create mode 100644 jenkins/Update ChocolateyCore Repository/builds/permalinks create mode 100644 jenkins/Update ChocolateyCore Repository/config.xml create mode 100644 jenkins/Update ChocolateyCore Repository/nextBuildNumber diff --git a/jenkins/Update ChocolateyCore Repository/builds/legacyIds b/jenkins/Update ChocolateyCore Repository/builds/legacyIds new file mode 100644 index 0000000..e69de29 diff --git a/jenkins/Update ChocolateyCore Repository/builds/permalinks b/jenkins/Update ChocolateyCore Repository/builds/permalinks new file mode 100644 index 0000000..d7703c1 --- /dev/null +++ b/jenkins/Update ChocolateyCore Repository/builds/permalinks @@ -0,0 +1,2 @@ +lastFailedBuild -1 +lastSuccessfulBuild -1 diff --git a/jenkins/Update ChocolateyCore Repository/config.xml b/jenkins/Update ChocolateyCore Repository/config.xml new file mode 100644 index 0000000..5055fa2 --- /dev/null +++ b/jenkins/Update ChocolateyCore Repository/config.xml @@ -0,0 +1,43 @@ + + + Automatically update any out of date packages in the ChocolateyCore repository from the Licensed and Community Repositories + false + + + + + + P_LOCAL_REPO_URL + Internal core repository. + https://{{hostname}}:8443/repository/ChocolateyCore/index.json + true + + + P_REMOTE_REPO_URL + Remote repositories containing updated package versions. + https://licensedpackages.chocolatey.org/api/v2/;https://community.chocolatey.org/api/v2/ + true + + + P_LOCAL_REPO_API_KEY + API key for the internal core repository where updated packages will be pushed. + {{NugetApiKey}} + + + + + + + true + + + false + diff --git a/jenkins/Update ChocolateyCore Repository/nextBuildNumber b/jenkins/Update ChocolateyCore Repository/nextBuildNumber new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/jenkins/Update ChocolateyCore Repository/nextBuildNumber @@ -0,0 +1 @@ +1 diff --git a/jenkins/Update production repository/config.xml b/jenkins/Update production repository/config.xml index a9d0f31..bc4e7b6 100644 --- a/jenkins/Update production repository/config.xml +++ b/jenkins/Update production repository/config.xml @@ -25,20 +25,6 @@ - - - - - Internalize packages from the Community Repository, Update test repository from Chocolatey Community Repository, - - SUCCESS - 0 - BLUE - true - - - -