Skip to content

Commit

Permalink
assign branch name to build.number
Browse files Browse the repository at this point in the history
  • Loading branch information
donsizemore committed Sep 19, 2018
1 parent 42f9ef6 commit d4dc7cb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# dataverse.pb

- name: Install Dataverse
hosts: dataverse
become: true
roles:
- role: dataverse
8 changes: 7 additions & 1 deletion tasks/dataverse-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
- "{{ dataverse.srcdir }}/conf/jhove/jhove.conf"
- "{{ dataverse.srcdir }}/conf/jhove/jhoveConfig.xsd"

- name: add branch name to Build.number
lineinfile:
path: "{{ dataverse.srcdir }}/src/main/java/BuildNumber.properties"
line: "build.number={{ dataverse.git.branch }}"
create: yes

- name: build warfile. tail /tmp/dataverse/mvn.out for gory details.
shell: "mvn -Dmaven.test.skip=true package > mvn.out"
args:
Expand All @@ -48,6 +54,6 @@
- name: copy warfile over release
copy:
src: "{{ dataverse.srcdir }}/target/dataverse-{{ dataverse.version }}.war"
dest: "/tmp/dvinstall/dataverse-{{ dataverse.version }}.war"
dest: "/tmp/dvinstall/dataverse.war"
backup: yes
remote_src: yes
2 changes: 1 addition & 1 deletion tests/group_vars/vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dataverse:
provider: EZID
filesdir: /usr/local/dvn/data
git:
branch: develop
branch:
repo: https://github.com/IQSS/dataverse.git
glassfish:
user: glassfish
Expand Down

0 comments on commit d4dc7cb

Please sign in to comment.