You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by sk...@apache.org on 2022/04/14 09:00:11 UTC

[netbeans-jenkins-lib] branch master updated: add Netbeanstlp as job dsl

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/netbeans-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 56200c6  add Netbeanstlp as job dsl
     new 942f11e  Merge pull request #57 from ebarboni/netbeanstlpdsl
56200c6 is described below

commit 56200c6cdf03d77be9f0cd3ec71cb964feb11cf7
Author: Eric Barboni <sk...@apache.org>
AuthorDate: Tue Apr 12 13:26:52 2022 +0200

    add Netbeanstlp as job dsl
---
 jobs/netbeansnativelauncher.groovy |  1 -
 jobs/netbeansreleasetlp.groovy     | 77 ++++++++++++++++++++++++++++++++++++++
 jobs/netbeanstestmatrix.groovy     |  1 -
 3 files changed, 77 insertions(+), 2 deletions(-)

diff --git a/jobs/netbeansnativelauncher.groovy b/jobs/netbeansnativelauncher.groovy
index 6142d9f..038bb8f 100644
--- a/jobs/netbeansnativelauncher.groovy
+++ b/jobs/netbeansnativelauncher.groovy
@@ -1,5 +1,4 @@
 #!groovy
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
diff --git a/jobs/netbeansreleasetlp.groovy b/jobs/netbeansreleasetlp.groovy
new file mode 100755
index 0000000..b465aae
--- /dev/null
+++ b/jobs/netbeansreleasetlp.groovy
@@ -0,0 +1,77 @@
+#!groovy
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+organizationFolder('NetBeans/netbeans-TLP') {
+    description('Apache NetBeans release jobs and apidoc generation for historical version')
+    displayName('NetBeans-TLP')
+    
+    organizations {
+        configure {
+            def asf  = it / navigators / 'org.apache.jenkins.gitpubsub.ASFGitSCMNavigator'
+            asf << {
+                server ('https://gitbox.apache.org/repos/asf')
+            }
+            def traits = asf / traits
+            traits << 'org.apache.jenkins.gitpubsub.ASFMetadataSCMNavigatorTrait' {
+                avatarUrl('https://netbeans.apache.org/images/nblogo32x32.png')
+            }
+            traits << 'jenkins.scm.impl.trait.WildcardSCMSourceFilterTrait' {
+                includes('netbeans')
+            }
+            traits << 'jenkins.plugins.git.traits.BranchDiscoveryTrait' {}
+            traits << 'jenkins.scm.impl.trait.RegexSCMHeadFilterTrait' {
+                regex('(master|release\\d+$)')
+            }
+        }
+       
+        buildStrategies {
+            buildNamedBranches {
+                filters {
+                    regex {
+                        regex('(master|release\\d+$)')
+                        caseSensitive(false)
+                    }
+                }
+            }
+        }
+        projectFactories {
+            workflowMultiBranchProjectFactory {
+                // Relative location within the checkout of our Pipeline script.
+                scriptPath("nbbuild/jenkins/Jenkinsfile.groovy")
+            } 
+        }
+        orphanedItemStrategy {
+            discardOldItems {
+                numToKeep(4)
+                daysToKeep(5)
+            }
+        }
+    
+        triggers {
+            periodicFolderTrigger {
+                interval("1d")
+            }
+        }
+    }
+}
+listView('NetBeans/netbeans') {
+    jobs {
+        name('NetBeans/netbeans-TLP')
+    }
+}
diff --git a/jobs/netbeanstestmatrix.groovy b/jobs/netbeanstestmatrix.groovy
index 36fc4c0..c326238 100644
--- a/jobs/netbeanstestmatrix.groovy
+++ b/jobs/netbeanstestmatrix.groovy
@@ -1,5 +1,4 @@
 #!groovy
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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