-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-59679] Use plugin URL from the update site rather than the m…
…anifest (#4273) * Use plugin URL from the update site rather than the manifest * Avoid Mockito when not needed * Resolve plugin URL from multiple update sites
- Loading branch information
1 parent
3a8c1ef
commit 40b68ea
Showing
6 changed files
with
159 additions
and
26 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
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
47 changes: 47 additions & 0 deletions
47
test/src/test/resources/plugins/alternative-update-center.json
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,47 @@ | ||
updateCenter.post( | ||
{"connectionCheckUrl":"http://www.google.com/", // has to be here because updateDirectly sniffs only very limited formats | ||
"core": { | ||
"buildDate": "Dec 31, 1969", | ||
"name": "core", | ||
"url": "jenkins.war", | ||
"version": "23" | ||
}, | ||
"id": "alternative", | ||
"plugins": { | ||
"tasks": { | ||
"buildDate": "Dec 17, 2008", | ||
"dependencies": [], | ||
"developers": [{"name": "lokadm"}], | ||
"excerpt": " This plug-in scans for open tasks in a specified set of files in the project modules and visualizes the results. ", | ||
"name": "tasks", | ||
"wiki": "https://plugins.jenkins.io/tasks", | ||
"requiredCore": "1.264", | ||
"sha1": "wtzlciUKiMcg90H5CTYkGX6+r8Y=", | ||
"title": "Jenkins Task Scanner Plug-in", | ||
"url": "tasks.jpi", | ||
"version": "2.23" | ||
}, | ||
"dummy": { | ||
"buildDate": "Dec 17, 2008", | ||
"dependencies": [], | ||
"developers": [], | ||
"excerpt": "…", | ||
"name": "dummy", | ||
"wiki": "https://plugins.example.com/dummy", | ||
"requiredCore": "1.100", | ||
"sha1": "wtzlcjUKiMcg90H5CTYkGX6+r8Y=", | ||
"title": "Dummy", | ||
"url": "http://nowhere.net/dummy.hpi", | ||
"version": "1.0" | ||
}, | ||
"foo": { | ||
"dependencies": [], | ||
"name": "foo", | ||
"wiki": "https://plugins.jenkins.io/foo", | ||
"version": "1.0", | ||
"url": "http://nowhere.net/dummy.hpi", | ||
} | ||
}, | ||
"updateCenterVersion": 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