Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active March 9, 2016 00:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/7344529 to your computer and use it in GitHub Desktop.
Save garystafford/7344529 to your computer and use it in GitHub Desktop.
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