0 Replies Latest reply on Sep 19, 2019 3:26 PM by edgar.sanchez

    Relationship between the server-group and the project

    edgar.sanchez

      Hi guys

       

      I am working with a war project and jenkins.  I have a configuration in the pom.xml file within the <build> <plugins> tags to include the wildfly-maven-plugin.  Additionally, I have a <server-group> configuration:

       

      <build>

      <plugins>

      <plugin>

      <groupId>org.wildfly.plugins</groupId>

      <artifactId>wildfly-maven-plugin</artifactId>

      <version>1.2.1.Final</version>

      <configuration>

      <hostname>${jboss.deploy.host}</hostname>

      <port>${jboss.deploy.port}</port>

      <username>${jboss.deploy.user}</username>

      <password>${jboss.deploy.pass}</password>

      <name>${project.build.finalName}.${project.packaging}</name>

      <domain>

      <server-groups>

      <server-group>my-server-group-name</server-group>

      </server-groups>

      </domain>

      </configuration>

      <executions>

      <!-- Undeploy the application on clean -->

      <execution>

      <id>undeploy</id>

      <phase>clean</phase>

      <goals>

      <goal>undeploy</goal>

      </goals>

      <configuration>

      <ignoreMissingDeployment>true</ignoreMissingDeployment>

      </configuration>

      </execution>

      ...

       

      What is the configuration that I have to add to the jboss 7 to use the undeploy task in jenkins?

       

      Actually I have a message error related with the server-group:  Reason: WFLYCTL0031: No operation named 'undeploy' exists at address

       

      Thank you