Skip to content

Error into Jenkins CI #6

@jota-coelho

Description

@jota-coelho

Hi all...
I am try using this plugin, to install and upgrade my helm script into a kubernetes namespace:

A am using a script like this:

    <plugin>
        <groupId>com.austindewey</groupId>
        <artifactId>helm-maven-plugin</artifactId>
        <version>1.1.1</version>
        <configuration>
	        <chart>
		        <name>my-chart</name>
		        <repository>
			        <url>https://my-nexus/helm-stable/</url>
		        </repository>
	        </chart>
	        <values>
		        <files>
			        <file>${project.build.directory}/resources/kubernetes.yaml</file>
		        </files>
	        </values>
	        <releaseName>my-chart</releaseName>
	        <namespace>${namespace}</namespace>
        </configuration>
        <executions>
	        <execution>
		        <phase>deploy</phase>
		        <goals>
			        <goal>upgrade</goal>
		        </goals>
	        </execution>
        </executions>
    </plugin>

It's works perfect in local environment.
When I build my project into a Jenkins, I get this error:
[ERROR] Failed to execute goal com.austindewey:helm-maven-plugin:1.1.1:upgrade (default) on project master: org.apache.maven.plugin.MojoExecutionException: Error: "helm upgrade" requires 2 argumentsUsage: helm upgrade [RELEASE] [CHART] [flags] -> [Help 1]

I am upgraded all Jenkins plugins and tools do use same versions of local environment. But.. Same error

Maven: 3.9.9
OpenJdk 21
Helm 3.16.3

Please, any ideia?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions