Skip to content

Commit

Permalink
Stuff for maven
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Feb 11, 2018
1 parent 4ef70b4 commit 1ead0ef
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,37 @@
pipeline {
agent any

stages {
stage('Checkout') {
steps {
checkout scm
sh "rm -rf build/libs"
}
}

stage('Setup') {
steps {
sh "./gradlew clean setupCIWorkspace --no-daemon"
}
}

stage('Build') {
steps {
sh "./gradlew build -PBUILD_NUMBER=${env.BUILD_NUMBER} --no-daemon"
}
}

stage('Archive') {
steps {
archive includes: 'build/libs/*.jar'
junit allowEmptyResults: true, testResults: 'build/test-results/**/*.xml'
}
}

stage('Deploy') {
steps {
sh "./gradlew publishMavenJavaPublicationToMavenRepository -PBUILD_NUMBER=${env.BUILD_NUMBER} -PDEPLOY_DIR=${env.MAVEN_DEPLOY_DIR} --no-daemon"
}
}
}
}
Empty file modified gradlew 100644 → 100755
Empty file.
16 changes: 16 additions & 0 deletions settings.gradle
@@ -0,0 +1,16 @@
/*
* The settings file is used to specify which projects to include in your build.
* In a single project build this file can be empty or even removed.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at http://gradle.org/docs/1.9/userguide/multi_project_builds.html
*/

/*
// To declare projects as part of a multi-project build use the 'include' method
include 'shared'
include 'api'
include 'services:webservice'
*/

rootProject.name = 'Inspirations'

0 comments on commit 1ead0ef

Please sign in to comment.