Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jenkins 'GitMavenGlassFish_Deploy' project config, for my blog post, 'Building a Deployment Pipeline Using Git, Maven, Jenkins, JUnit, and GlassFish'. Can be created using restore feature of ThinBackup plugin.
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description>Clean, compile, assemble, test, and deploy application, using Maven, Git, and GlassFish</description>
<logRotator class="hudson.tasks.LogRotator">
<daysToKeep>-1</daysToKeep>
<numToKeep>5</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition>
<name>environment</name>
<description>Which GlassFish domain to deploy .war file</description>
<defaultValue>development</defaultValue>
</hudson.model.StringParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.plugins.copyartifact.CopyArtifact plugin="copyartifact@1.28">
<project>GitMavenGlassFish_Build</project>
<filter></filter>
<target></target>
<selector class="hudson.plugins.copyartifact.StatusBuildSelector"/>
</hudson.plugins.copyartifact.CopyArtifact>
<hudson.tasks.Maven>
<targets>properties:read-project-properties glassfish:redeploy -e</targets>
<mavenName>Maven 3.1.1</mavenName>
<pom>HelloGlassFishMaven\pom.xml</pom>
<properties>glassfish.properties.file.argument=${environment}</properties>
<usePrivateRepository>true</usePrivateRepository>
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
</hudson.tasks.Maven>
</builders>
<publishers/>
<buildWrappers/>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.