Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (24 sloc) 1.06 KB
<?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="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>