This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/archiva-redback-components-parent.git
The following commit(s) were added to refs/heads/master by this push:
new efea42b use shared Jenkins lib
efea42b is described below
commit efea42b38b9d56e58b57091ace5a63e7caf2166e
Author: olivier lamy <[email protected]>
AuthorDate: Sat Dec 29 14:25:12 2018 +1000
use shared Jenkins lib
Signed-off-by: olivier lamy <[email protected]>
---
.gitignore | 1 +
Jenkinsfile | 37 ++++++++-----------------------------
2 files changed, 9 insertions(+), 29 deletions(-)
diff --git a/.gitignore b/.gitignore
index eb5a316..78575d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
target
+*.iml
diff --git a/Jenkinsfile b/Jenkinsfile
index 99b0e58..40d6a42 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -23,36 +23,15 @@
*
*/
-def labels = 'ubuntu'
-def buildJdk = 'JDK 1.8 (latest)'
-def buildMvn = 'Maven 3.5.2'
-def deploySettings = 'archiva-uid-jenkins'
-node(labels) {
-
- cleanWs()
-
- stage ('Clone Sources') {
- checkout scm
- }
-
- stage ('Build') {
- withMaven(
- maven: buildMvn,
- jdk: buildJdk,
- mavenSettingsConfig: deploySettings
- ) {
- sh "mvn clean install -B -U -e -fae -Dmaven.compiler.fork=false"
- }
- }
-
- stage ('Deploy') {
- withMaven(
- maven: buildMvn,
- jdk: buildJdk,
- mavenSettingsConfig: deploySettings
- ) {
- sh "mvn deploy -Dmaven.test.skip=true -B -U -e -fae
-Dmaven.compiler.fork=false"
+pipeline {
+ stages{
+ stage("Build"){
+ agent { node { label 'ubuntu' } }
+ options { timeout(time: 120, unit: 'MINUTES') }
+ steps{
+ asfStandardBuild params:[cmdline:"clean deploy"]
+ }
}
}
}