public class Main extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
capCore |
String |
capPlugin |
String |
connectionCheckUrl |
File |
download
This option builds the directory image for the download server, which contains all the plugins
ever released to date in a directory structure.
|
static String |
EOL |
boolean |
experimentalOnly |
String |
id |
File |
indexHtml |
File |
json |
File |
jsonp |
File |
latest
This file defines all the convenient symlinks in the form of
./latest/PLUGINNAME.hpi.
|
File |
latestCoreTxt |
Integer |
maxPlugins |
boolean |
noExperimental |
File |
pluginCountTxt |
boolean |
prettyPrint |
File |
releaseHistory |
boolean |
skipReleaseHistory |
boolean |
stableCore |
File |
urlmap |
File |
www
This options builds update site.
|
File |
wwwDownload
This options builds the http://updates.jenkins-ci.org/download files,
which consists of a series of index.html that lists available versions of plugins and cores.
|
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
protected net.sf.json.JSONObject |
buildCore(MavenRepository repository,
LatestLinkBuilder redirect)
Identify the latest core, populates the htaccess redirect file, optionally download the core wars and build the index.html
|
protected net.sf.json.JSONObject |
buildFullReleaseHistory(MavenRepository repo)
Build JSON for the release history list.
|
protected net.sf.json.JSONObject |
buildPlugins(MavenRepository repository,
LatestLinkBuilder latest)
Build JSON for the plugin list.
|
protected net.sf.json.JSONArray |
buildReleaseHistory(MavenRepository repository) |
protected void |
createLatestSymlink(PluginHistory hpi,
HPI latest)
Generates symlink to the latest version.
|
protected MavenRepository |
createRepository() |
static void |
main(String[] args) |
void |
run() |
int |
run(String[] args) |
protected void |
stage(MavenArtifact a,
File dst)
Stages an artifact into the specified location.
|
public File jsonp
public File json
public File releaseHistory
public File urlmap
public File latest
public File download
public File www
public File wwwDownload
This is the URL space that gets referenced by update center metadata, and this is the entry point of all the inbound download traffic. Actual *.hpi downloads are redirected to mirrors.jenkins-ci.org via Apache .htaccess.
public File indexHtml
public File latestCoreTxt
public String id
public Integer maxPlugins
public String connectionCheckUrl
public boolean prettyPrint
public String capPlugin
public String capCore
public boolean stableCore
public File pluginCountTxt
public boolean experimentalOnly
public boolean noExperimental
public boolean skipReleaseHistory
public static final String EOL
protected MavenRepository createRepository() throws Exception
Exceptionprotected net.sf.json.JSONObject buildPlugins(MavenRepository repository, LatestLinkBuilder latest) throws Exception
repository - latest - Exceptionprotected void createLatestSymlink(PluginHistory hpi, HPI latest) throws InterruptedException, IOException
InterruptedExceptionIOExceptionprotected void stage(MavenArtifact a, File dst) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected net.sf.json.JSONObject buildFullReleaseHistory(MavenRepository repo) throws Exception
repo - Exceptionprotected net.sf.json.JSONArray buildReleaseHistory(MavenRepository repository) throws Exception
Exceptionprotected net.sf.json.JSONObject buildCore(MavenRepository repository, LatestLinkBuilder redirect) throws Exception
ExceptionCopyright © 2004-2018. All Rights Reserved.