type() {
+ return WorkflowMultiBranchDefProject.class;
+ }
+
+ @Override
+ public Collection extends Action> createFor(WorkflowMultiBranchDefProject target) {
+ if (target.hasPermission(Item.EXTENDED_READ)) {
+ return Collections.singleton(new Snippetizer.LocalAction());
+ } else {
+ return Collections.emptySet();
+ }
+ }
+
+ }
+
+}
diff --git a/src/main/resources/index.jelly b/src/main/resources/index.jelly
new file mode 100644
index 0000000..2fdbf32
--- /dev/null
+++ b/src/main/resources/index.jelly
@@ -0,0 +1,29 @@
+
+
+
+
+
+ Extension for workflow-multibranch-plugin. Automatically build branches the prepared default pipeline script.
+
diff --git a/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/DefMessages.properties b/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/DefMessages.properties
new file mode 100644
index 0000000..0bc65f6
--- /dev/null
+++ b/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/DefMessages.properties
@@ -0,0 +1,3 @@
+WorkflowMultiBranchDefProject.DisplayName=Multibranch Pipeline with defaults
+WorkflowMultiBranchDefProject.Description=Extend Multibranch pipeline plugin and build branches it the default prepred pipeline script.\
+ Creates a set of Pipeline projects according to detected branches in one SCM repository.
\ No newline at end of file
diff --git a/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchDefProjectFactory/config.jelly b/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchDefProjectFactory/config.jelly
new file mode 100644
index 0000000..a9800ae
--- /dev/null
+++ b/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchDefProjectFactory/config.jelly
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
diff --git a/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchDefProjectFactory/getting-started.jelly b/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchDefProjectFactory/getting-started.jelly
new file mode 100644
index 0000000..ca3db2b
--- /dev/null
+++ b/src/main/resources/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchDefProjectFactory/getting-started.jelly
@@ -0,0 +1,36 @@
+
+
+
+ Pipeline Branch projects support building branches within a repository with a file named
+ Jenkinsfile
+ in the Jenkins global files or scm module root directory.
+ This file should contain a valid
+ Jenkins
+ Pipeline script. See also:
+
+ Creating Multibranch Projects.
+
diff --git a/src/main/webapp/images/48x48/pipelinemultibranchdefproject.png b/src/main/webapp/images/48x48/pipelinemultibranchdefproject.png
new file mode 100644
index 0000000..e3f6b29
Binary files /dev/null and b/src/main/webapp/images/48x48/pipelinemultibranchdefproject.png differ
diff --git a/src/test/java/org/jenkinsci/plugins/workflow/multibranch/LocalSCMBinderTest.java b/src/test/java/org/jenkinsci/plugins/workflow/multibranch/LocalSCMBinderTest.java
new file mode 100644
index 0000000..bab543c
--- /dev/null
+++ b/src/test/java/org/jenkinsci/plugins/workflow/multibranch/LocalSCMBinderTest.java
@@ -0,0 +1,29 @@
+/*
+ * The MIT License
+ *
+ * Copyright 2015 CloudBees, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+package org.jenkinsci.plugins.workflow.multibranch;
+
+public class LocalSCMBinderTest {
+
+}
diff --git a/src/test/java/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchLocalProjectFactoryTest.java b/src/test/java/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchLocalProjectFactoryTest.java
new file mode 100644
index 0000000..0a268dc
--- /dev/null
+++ b/src/test/java/org/jenkinsci/plugins/workflow/multibranch/WorkflowBranchLocalProjectFactoryTest.java
@@ -0,0 +1,29 @@
+/*
+ * The MIT License
+ *
+ * Copyright 2015 CloudBees, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+package org.jenkinsci.plugins.workflow.multibranch;
+
+public class WorkflowBranchLocalProjectFactoryTest {
+
+}