Skip to content

Commit

Permalink
add README and sample config.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
donsizemore committed Apr 9, 2019
0 parents commit 11638c9
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Dataverse-Jenkins
=================

This repository aims to document the configuration of automated testing for [Dataverse][] and its satellite projects.

The [Odum Institute][] hosts [jenkins.dataverse.org][] as a vanilla CentOS 7 VM running [Jenkins][]' standard [repo RPM][]. If you would like to stand up your own Jenkins instance, we recommend GeerlingGuy's excellent [Jenkins Ansible role][].

In our current configuration, Jenkins waits for a webhook push from [IQSS/dataverse-develop][], builds the Dataverse warfile and in the near future will deploy it to a test VM. You may find this [config.xml][] file helpful to get you started.

[Dataverse]: https://dataverse.org/
[Odum Institute]: https://odum.unc.edu
[jenkins.dataverse.org]: https://jenkins.dataverse.org/
[Jenkins]: https://jenkins.io/
[repo RPM]: https://pkg.jenkins.io/redhat/
[Jenkins Ansible Role]: https://github.com/geerlingguy/ansible-role-jenkins
[IQSS/dataverse-develop]: https://github.com/IQSS/dataverse/tree/develop
[config.xml]: config.xml
57 changes: 57 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description>IQSS-develop build for GDCC</description>
<keepDependencies>false</keepDependencies>
<properties>
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.29.4">
<projectUrl>https://github.com/IQSS/dataverse/</projectUrl>
<displayName></displayName>
</com.coravy.hudson.plugins.github.GithubProjectProperty>
</properties>
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.9.3">
<configVersion>2</configVersion>
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://github.com/IQSS/dataverse.git</url>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>*/develop</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="list"/>
<extensions/>
</scm>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers>
<com.cloudbees.jenkins.GitHubPushTrigger plugin="github@1.29.4">
<spec></spec>
</com.cloudbees.jenkins.GitHubPushTrigger>
</triggers>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>#!/usr/bin/env bash

echo &quot;exit on error&quot;
set -e

echo &quot;package warfile&quot;
mvn package</command>
</hudson.tasks.Shell>
</builders>
<publishers/>
<buildWrappers>
<org.jenkinsci.plugins.buildnamesetter.BuildNameSetter plugin="build-name-setter@1.7.1">
<template>#${BUILD_NUMBER}: ${GIT_BRANCH}, SHA:${GIT_REVISION, length=8} (${BUILD_CAUSE})</template>
<runAtStart>true</runAtStart>
<runAtEnd>true</runAtEnd>
</org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
</buildWrappers>
</project>

0 comments on commit 11638c9

Please sign in to comment.