-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#230) Adds ChocolateyCore Repository and Jenkins Job
- Adds ChocolateyCore repo as main repo for core packages - Adds callout to new ChocolateyCore repository Remove See It In Action section as video is outdated Fixup spelling/grammer - Adds new Update ChocolateyCore Repository Jenkins Job - Add test to check for new Jenkins job Signed-off-by: Ryan Richter <[email protected]>
- Loading branch information
1 parent
1bad999
commit 2864e90
Showing
11 changed files
with
119 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lastFailedBuild -1 | ||
lastSuccessfulBuild -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.1" encoding="UTF-8"?><flow-definition plugin="[email protected]"> | ||
<actions/> | ||
<description>Automatically update any out of date packages in the ChocolateyCore repository from the Licensed and Community Repositories</description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<org.jenkinsci.plugins.workflow.job.properties.DisableConcurrentBuildsJobProperty/> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>P_LOCAL_REPO_URL</name> | ||
<description>Internal core repository.</description> | ||
<defaultValue>https://{{hostname}}:8443/repository/ChocolateyCore/index.json</defaultValue> | ||
<trim>true</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>P_REMOTE_REPO_URL</name> | ||
<description>Remote repositories containing updated package versions.</description> | ||
<defaultValue>https://licensedpackages.chocolatey.org/api/v2/;https://community.chocolatey.org/api/v2/</defaultValue> | ||
<trim>true</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.PasswordParameterDefinition> | ||
<name>P_LOCAL_REPO_API_KEY</name> | ||
<description>API key for the internal core repository where updated packages will be pushed.</description> | ||
<defaultValue>{{NugetApiKey}}</defaultValue> | ||
</hudson.model.PasswordParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
</properties> | ||
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="[email protected]"> | ||
<script>node { | ||
powershell ''' | ||
Set-Location (Join-Path "$env:SystemDrive" -ChildPath 'scripts') | ||
.\\Get-UpdatedPackage.ps1 -LocalRepo $env:P_LOCAL_REPO_URL ` | ||
-LocalRepoApiKey $env:P_LOCAL_REPO_API_KEY ` | ||
-RemoteRepo $env:P_REMOTE_REPO_URL ` | ||
-Verbose | ||
''' | ||
}</script> | ||
<sandbox>true</sandbox> | ||
</definition> | ||
<triggers/> | ||
<disabled>false</disabled> | ||
</flow-definition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,20 +25,6 @@ | |
</hudson.model.StringParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
<org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> | ||
<triggers> | ||
<jenkins.triggers.ReverseBuildTrigger> | ||
<spec/> | ||
<upstreamProjects>Internalize packages from the Community Repository, Update test repository from Chocolatey Community Repository, </upstreamProjects> | ||
<threshold> | ||
<name>SUCCESS</name> | ||
<ordinal>0</ordinal> | ||
<color>BLUE</color> | ||
<completeBuild>true</completeBuild> | ||
</threshold> | ||
</jenkins.triggers.ReverseBuildTrigger> | ||
</triggers> | ||
</org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> | ||
</properties> | ||
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="[email protected]"> | ||
<script> node { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.