forked from open-eid/digidoc4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins_build.xml
34 lines (30 loc) · 1.2 KB
/
jenkins_build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<project name="digidoc4j jenkins builder" basedir=".">
<property file="password.properties"/>
<property name="dist.dir" value="dist"/>
<property environment="env"/>
<target name="version">
<exec executable="sh" outputproperty="lib.version">
<arg value="-c"/>
<arg value="git tag -l public* | tail -1 | awk -F '-' '{print $2}'"/>
<!--| awk -F '-' '{print $2}'""/>-->
</exec>
<echo>Version = ${lib.version}</echo>
</target>
<condition property="version.suffix" value=".${env.BUILD_NUMBER}-beta" else=".LOCAL_BUILD-beta">
<isset property="env.BUILD_NUMBER"/>
</condition>
<target name="sd-dss">
<exec executable="mvn" dir="sd-dss">
<arg line="clean"/>
<arg line="install"/>
</exec>
</target>
<target name="sign" depends="version">
<echo message="${dist.dir}/digidoc4j-${lib.version}${version.suffix}.jar"/>
<signjar jar="${dist.dir}/digidoc4j-${lib.version}${version.suffix}.jar" storetype="pkcs12"
keystore="testFiles/codesign2014.pfx"
alias="f5a035698e5674bac8d45b742bc163a5_59e8b597-f62a-4665-af98-fc45e3270c39"
storepass="${signingpassword}"/>
</target>
</project>