Package com.kiwigrid.helm.maven.plugin
Class UploadMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.kiwigrid.helm.maven.plugin.AbstractHelmMojo
-
- com.kiwigrid.helm.maven.plugin.UploadMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="upload", defaultPhase=DEPLOY) public class UploadMojo extends AbstractHelmMojoMojo for uploading to helm repo (e.g. chartmuseum)- Since:
- 02.01.18
- Author:
- Fabian Schlegel
-
-
Field Summary
-
Fields inherited from class com.kiwigrid.helm.maven.plugin.AbstractHelmMojo
skip
-
-
Constructor Summary
Constructors Constructor Description UploadMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected HttpURLConnectiongetConnectionForUploadToArtifactory(File file)protected HttpURLConnectiongetConnectionForUploadToChartmuseum()protected voiduploadSingle(String file)-
Methods inherited from class com.kiwigrid.helm.maven.plugin.AbstractHelmMojo
getAppVersion, getChartDirectory, getChartVersion, getExcludes, getHelmDownloadUrl, getHelmExecutableDirectory, getHelmExtraRepos, getHelmSecurity, getOutputDirectory, getRegistryConfig, getRepositoryCache, getRepositoryConfig, getSecDispatcher, getSettings, getUploadRepoSnapshot, getUploadRepoStable, isAutoDetectLocalHelmBinary, isUseLocalHelmBinary, setAppVersion, setAutoDetectLocalHelmBinary, setChartDirectory, setChartVersion, setExcludes, setHelmDownloadUrl, setHelmExecutableDirectory, setHelmExtraRepos, setHelmSecurity, setOutputDirectory, setRegistryConfig, setRepositoryCache, setRepositoryConfig, setUploadRepoSnapshot, setUploadRepoStable, setUseLocalHelmBinary
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
uploadSingle
protected void uploadSingle(String file) throws IOException, BadUploadException, org.apache.maven.plugin.MojoExecutionException
- Throws:
IOExceptionBadUploadExceptionorg.apache.maven.plugin.MojoExecutionException
-
getConnectionForUploadToChartmuseum
protected HttpURLConnection getConnectionForUploadToChartmuseum() throws IOException
- Throws:
IOException
-
getConnectionForUploadToArtifactory
protected HttpURLConnection getConnectionForUploadToArtifactory(File file) throws IOException, org.apache.maven.plugin.MojoExecutionException
- Throws:
IOExceptionorg.apache.maven.plugin.MojoExecutionException
-
-