Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ef70b4
commit 1ead0ef
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |