From 653aa0f8b4c7d5cc9d180d21254defb9638aa8f4 Mon Sep 17 00:00:00 2001 From: Alan19 Date: Wed, 1 Jan 2020 14:57:57 -0500 Subject: [PATCH] Bump version number and add JenkinsFile --- JenkinsFile | 27 +++++++++++++++++++++++++++ build.gradle | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 JenkinsFile diff --git a/JenkinsFile b/JenkinsFile new file mode 100644 index 00000000..1dd7d3e1 --- /dev/null +++ b/JenkinsFile @@ -0,0 +1,27 @@ +#!/usr/bin/env groovy + +pipeline { + agent any + stages { + stage('Clean') { + steps { + echo 'Cleaning Project' + sh 'chmod +x gradlew' + sh './gradlew clean' + } + } + stage('Build and Deploy') { + steps { + echo 'Building and Deploying to Maven' + script { + sh './gradlew build -Pbranch=' + env.BRANCH_NAME + ' uploadArchives' + } + } + } + } + post { + always { + archive 'build/libs/**.jar' + } + } +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index f76551b9..a3b7c44b 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'maven-publish' -version = '0.4.10' +version = '0.5.0' group = 'com.alan199921.astral' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'astral'