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()-
Methods inherited from class com.kiwigrid.helm.maven.plugin.AbstractHelmMojo
getAppVersion, getChartDirectory, getChartVersion, getExcludes, getHelmDownloadUrl, getHelmExecutableDirectory, getHelmExtraRepos, getHelmHomeDirectory, getHelmSecurity, getOutputDirectory, getSecDispatcher, getSettings, getUploadRepoSnapshot, getUploadRepoStable, isAutoDetectLocalHelmBinary, isUseLocalHelmBinary, setAppVersion, setAutoDetectLocalHelmBinary, setChartDirectory, setChartVersion, setExcludes, setHelmDownloadUrl, setHelmExecutableDirectory, setHelmExtraRepos, setHelmHomeDirectory, setHelmSecurity, setOutputDirectory, setUploadRepoSnapshot, setUploadRepoStable, setUseLocalHelmBinary
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.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
-
-