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

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 28a3ded  NETBEANS-2060 apidoc javadoc generation for 11.0
28a3ded is described below

commit 28a3ded7620e8e357b7ff3a6032c685e572d16ff
Author: Eric Barboni <[email protected]>
AuthorDate: Wed Feb 13 11:25:33 2019 +0100

    NETBEANS-2060 apidoc javadoc generation for 11.0
---
 .../Jenkinsfile-maven-release110.groovy            | 65 ++++++++++++++++++++++
 .../conveniences/Jenkinsfile-release110.groovy     | 33 +++++++++++
 buildscripts/conveniences/generatebuildscript.sh   |  7 ++-
 3 files changed, 102 insertions(+), 3 deletions(-)

diff --git a/buildscripts/conveniences/Jenkinsfile-maven-release110.groovy 
b/buildscripts/conveniences/Jenkinsfile-maven-release110.groovy
new file mode 100644
index 0000000..0ed2945
--- /dev/null
+++ b/buildscripts/conveniences/Jenkinsfile-maven-release110.groovy
@@ -0,0 +1,65 @@
+pipeline {
+   agent  { label 'ubuntu' }
+   tools {
+      maven 'Maven 3.3.9'
+      jdk 'JDK 1.8 (latest)'
+   }
+   stages {
+      stage('Informations') {
+          steps {
+              echo "Branche we are building is : refs/heads/release110"
+          }
+      }
+      stage('mavenutils preparation') {
+          // this stage is temporary
+          steps {
+              echo 'Get Mavenutils sources'
+              sh 'rm -rf mavenutils'
+              checkout([$class: 'GitSCM', branches: [[name: '*/master']], 
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', 
noTags: true, reference: '', shallow: true], [$class: 'MessageExclusion', 
excludedMessage: 'Automated site publishing.*'], [$class: 
'RelativeTargetDirectory', relativeTargetDir: 'mavenutils']], submoduleCfg: [], 
userRemoteConfigs: [[url: 
'https://github.com/apache/incubator-netbeans-mavenutils/']]])
+              script {
+                 def mvnfoldersforsite  = 
['parent','nbm-shared','nb-repository-plugin']
+                 for (String mvnproject in mvnfoldersforsite) {
+                     dir('mavenutils/'+mvnproject) {
+                        sh "mvn clean install 
-Dmaven.repo.local=${env.WORKSPACE}/.repository"
+                     }
+                 }
+              }
+          }
+      }
+      stage('SCM operation') {
+          steps {
+              echo 'clean up netbeans sources'
+              sh 'rm -rf netbeanssources'
+              echo 'Get NetBeans sources'
+              checkout([$class: 'GitSCM', branches: [[name: 
'refs/heads/release110']], doGenerateSubmoduleConfigurations: false, 
extensions: [[$class: 'CloneOption', noTags: true, reference: '', shallow: 
true], [$class: 'MessageExclusion', excludedMessage: 'Automated site 
publishing.*'], [$class: 'RelativeTargetDirectory', relativeTargetDir: 
'netbeanssources']], submoduleCfg: [], userRemoteConfigs: [[url: 
'https://github.com/apache/incubator-netbeans/']]])
+          }
+      }
+      stage('NetBeans Builds') {
+          steps {
+              dir ('netbeanssources'){
+                  withAnt(installation: 'Ant (latest)') {
+                      sh 'ant'
+                      sh 'ant build-javadoc'
+                      sh 'ant build-source-zips'
+                      sh 'ant build-nbms'
+                  }
+              }
+              archiveArtifacts 'WEBZIP.zip'
+              archiveArtifacts 'netbeanssources/nbbuild/netbeans/**'
+              archiveArtifacts 'netbeanssources/nbbuild/build/source-zips/**'
+              archiveArtifacts 'netbeanssources/nbbuild/build/javadoc/**'
+              archiveArtifacts 'netbeanssources/nbbuild/nbms/**'
+            }
+      }
+      stage('NetBeans Maven Stage') {
+          steps {
+              script {
+                        sh "mvn 
org.netbeans.maven:nb-repository-plugin:1.4-SNAPSHOT:download 
-DnexusIndexDirectory=${env.WORKSPACE}/repoindex 
-Dmaven.repo.local=${env.WORKSPACE}/.repository 
-DrepositoryUrl=https://repo.maven.apache.org/maven2";
+                        sh 'mkdir -p testrepo/.m2'
+                        sh "mvn 
org.netbeans.maven:nb-repository-plugin:1.4-SNAPSHOT:populate 
-DnexusIndexDirectory=${env.WORKSPACE}/repoindex 
-DnetbeansNbmDirectory=${env.WORKSPACE}/netbeanssources/nbbuild/nbms 
-DnetbeansInstallDirectory=${env.WORKSPACE}/netbeanssources/nbbuild/netbeans 
-DnetbeansSourcesDirectory=${env.WORKSPACE}/netbeanssources/nbbuild/build/source-zips
 
-DnebeansJavadocDirectory=${env.WORKSPACE}/netbeanssources/nbbuild/build/javadoc
  -Dmaven.repo.local=${env.WORKSPACE} [...]
+              }
+              archiveArtifacts 'testrepo/.m2/**'
+          }
+      }
+   }
+}
diff --git a/buildscripts/conveniences/Jenkinsfile-release110.groovy 
b/buildscripts/conveniences/Jenkinsfile-release110.groovy
new file mode 100644
index 0000000..26289dd
--- /dev/null
+++ b/buildscripts/conveniences/Jenkinsfile-release110.groovy
@@ -0,0 +1,33 @@
+pipeline {
+   agent  { label 'ubuntu' }
+   tools {
+      maven 'Maven 3.3.9'
+      jdk 'JDK 1.8 (latest)'
+   }
+   stages {
+      stage('Informations') {
+          steps {
+              echo "Branche we are building is : refs/heads/release110"
+          }
+      }
+      stage('SCM operation') {
+          steps {
+              echo 'clean up netbeans sources'
+              sh 'rm -rf netbeanssources'
+              echo 'Get NetBeans sources'
+              checkout([$class: 'GitSCM', branches: [[name: 
'refs/heads/release110']], doGenerateSubmoduleConfigurations: false, 
extensions: [[$class: 'CloneOption', noTags: true, reference: '', shallow: 
true], [$class: 'MessageExclusion', excludedMessage: 'Automated site 
publishing.*'], [$class: 'RelativeTargetDirectory', relativeTargetDir: 
'netbeanssources']], submoduleCfg: [], userRemoteConfigs: [[url: 
'https://github.com/apache/incubator-netbeans/']]])
+          }
+      }
+      stage('NetBeans Builds') {
+          steps {
+              dir ('netbeanssources'){
+                  withAnt(installation: 'Ant (latest)') {
+                      sh 'ant'
+                      sh "ant build-javadoc 
-Djavadoc.web.root='http://bits.netbeans.org/11.0/javadoc' 
-Dmodules-javadoc-date='13 Feb 2019' -Datom-date='2019-02-13T12:00:00Z' 
-Djavadoc.web.zip=${env.WORKSPACE}/WEBZIP.zip"
+                  }
+              }
+              archiveArtifacts 'WEBZIP.zip'
+            }
+      }
+   }
+}
diff --git a/buildscripts/conveniences/generatebuildscript.sh 
b/buildscripts/conveniences/generatebuildscript.sh
index 8b93013..c907e2d 100644
--- a/buildscripts/conveniences/generatebuildscript.sh
+++ b/buildscripts/conveniences/generatebuildscript.sh
@@ -28,8 +28,9 @@ ant10='Ant (latest)'
 ## information for each release (tools + date of release to flag the doc)
 ## pick tools that are available on ubuntu node on build.apache.org
 releaseinfo=[
-['release90','9.0-vc3', True,jdk8,maven339,ant10,'1.4-SNAPSHOT','RELEASE90', 
'http://bits.netbeans.org/9.0/javadoc', datetime(2018,07,29,12,00)],
-['release100','10.0-vc5',True,jdk8,maven339,ant10,'1.4-SNAPSHOT','RELEASE100','http://bits.netbeans.org/10.0/javadoc',datetime(2018,12,27,12,00)],
+['release90',  '9.0-vc3', True,jdk8,maven339,ant10,'1.4-SNAPSHOT', 
'RELEASE90', 'http://bits.netbeans.org/9.0/javadoc', 
datetime(2018,07,29,12,00)],
+['release100','10.0-vc5', 
True,jdk8,maven339,ant10,'1.4-SNAPSHOT','RELEASE100','http://bits.netbeans.org/10.0/javadoc',
 datetime(2018,12,27,12,00)],
+['release110',        '', 
True,jdk8,maven339,ant10,'1.4-SNAPSHOT','RELEASE110','http://bits.netbeans.org/11.0/javadoc',
 datetime(2019,02,13,12,00)],
 ##release 111
 ['master','', True,jdk8,maven339,ant10,'1.4-SNAPSHOT','dev-SNAPSHOT']] ## no 
need custom info
 
@@ -67,7 +68,7 @@ def write_pipelineclose(afile):
 
 for arelease in releaseinfo:
   branch='refs/heads/'+arelease[0]
-  if branch=='refs/heads/master':
+  if arelease[1]=='':
     tag=branch
   else:
     tag='refs/tags/'+arelease[1]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to