This is an automated email from the ASF dual-hosted git repository.

martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c1b9eb  Adding information and flag for local jenkins run
4c1b9eb is described below

commit 4c1b9eb17d5d0a64f170da80d4726afa2af07f94
Author: Martin Stockhammer <[email protected]>
AuthorDate: Sun Nov 17 16:40:16 2019 +0100

    Adding information and flag for local jenkins run
---
 vars/asfStandardBuild.groovy | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/vars/asfStandardBuild.groovy b/vars/asfStandardBuild.groovy
index bbb8d7a..301edbd 100644
--- a/vars/asfStandardBuild.groovy
+++ b/vars/asfStandardBuild.groovy
@@ -19,6 +19,17 @@
  * under the License.
  */
 
+/*
+ * Library for running jenkins pipeline builds. 
+ * You can add the library to your Jenkins configuration and put the following 
line
+ * to the Jenkinsfile:
+ * <code>asfStandardBuild()</code>
+ *
+ * If you have want to use it in your local jenkins installation you can add 
the 
+ * environment variable: <code>NONAPACHEORG_RUN=y</code> to your central 
jenkins
+ * configuration. That means that not deploy task is executed, only install.
+ */
+
 def call(Map params = [:]) {
   // Faster build and reduces IO needs
   properties([
@@ -30,7 +41,7 @@ def call(Map params = [:]) {
   // now determine params
   def jdk = params.containsKey('jdk') ? params.jdk : 'JDK 1.8 (latest)'
   // use the cmdLine parameter otherwise default depending on current branch
-  def cmdline = params.containsKey('cmdline') ? params.cmdline : 
(env.BRANCH_NAME == 'master'?"clean deploy":"clean install")
+  def cmdline = params.containsKey('cmdline') ? params.cmdline : 
((env.NONAPACHEORG_RUN != 'y' && env.BRANCH_NAME == 'master') ?"clean 
deploy":"clean install")
   def mvnName = params.containsKey('mvnName') ? params.mvnName : 'Maven 3.5.4'
 
 

Reply via email to