From 562c2c3d136c1d43951487f98fe43552b94b446f Mon Sep 17 00:00:00 2001 From: Gard Rimestad Date: Tue, 21 Oct 2014 15:58:42 +0200 Subject: [PATCH] adding finnbuild config --- finnbuild.json | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 finnbuild.json diff --git a/finnbuild.json b/finnbuild.json new file mode 100644 index 0000000000..78701557c6 --- /dev/null +++ b/finnbuild.json @@ -0,0 +1,39 @@ +{ + "links": { + "build": "UNLEASH-UNLEASHGITHUB", + "repository": "https://github.com/finn-no/unleash" + }, + "versions": { + "jdk": "1.7", + "mvn": "3" + }, + "tasks": { + "deploy": [ + {"command": "cd unleash-server && npm install"}, + {"command": "cd unleash-server && npm test"}, + {"command": "cd unleash-server && tar -cvzf unleash-server.tar.gz --exclude=unleash-server.tar.gz --exclude=.git *"}, + { + "command": "cd unleash-server && mvn deploy:deploy-file -Durl=http://mavenproxy.finntech.no/finntech-internal-snapshot/ -DrepositoryId=finntech-internal-snapshot -Dfile=unleash-server.tar.gz -DgroupId=no.finntech.unleash -DartifactId=unleash-server -Dversion=0.1337-SNAPSHOT -Dpackaging=tar.gz", + "pipelines": [ + { + "name": "unleash-server", + "pattern": "Uploaded: +(http:.+unleash-server-.+.tar.gz)" + } + ] + }, + { "command" : "rm unleash-server/sql -Rf && mkdir unleash-server/sql" }, + { "command" : "cd unleash-server && scripts/generate-liquibase-artifact.js > sql/db.changelog-master.xml"}, + { "command" : "cd unleash-server && jar -cf ../unleash-db.jar sql"}, + { + "command": "mvn deploy:deploy-file -Durl=http://mavenproxy.finntech.no/finntech-internal-snapshot/ -DrepositoryId=finntech-internal-snapshot -Dfile=unleash-db.jar -DgroupId=no.finntech.unleash -DartifactId=unleash-db -Dversion=0.1337-SNAPSHOT -Dpackaging=jar", + "pipelines": [ + { + "name": "unleash-db", + "pattern": "Uploaded:\\s+(http:.+unleash-db-.+\\.jar)" + } + ] + }, + + ] + } +} \ No newline at end of file