== fabric8-generator-addon :idprefix: id_ This addon provides the addons for the fabric8 forge generator wizards
=== Depends on [options="header"] |=== |Addon |Exported |Optional |ui |yes |no |projects |yes |no |===
== Setup
This Addon needs to be installed in the local maven repository before used in the backend.
mvn clean install
== Testing in development
First make sure you have connected to an OpenShift cluster so that you can do things like
You can now try out this addon in the Forge CLI as follows:
==== build fabric8-generator locally
==== install the addon into forge
forge
command to your $PATH
~/.forge
folder to remove any old addons==== setup your git account
==== create a project!
TAB
Then hit return and enjoy the ride!!!
==== import a git repo
If you are running a jenkins service in your current openshift namespace which has the https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Organization+Folder+Plugin[github organisation folder plugin] installed like the http://central.maven.org/maven2/io/fabric8/devops/apps/jenkins-openshift/[fabric8 image] you should be able to import one or more repositories from your github account or any other organisation via the following command:
This command will create a pipeline for all matching repositories and all branches with a Jenkinsfile!
To import all projects use the pattern: .*
=== Debugging
To debug your local build of the forge addons exit forge then re-run it via:
You can then create a Remote
Debug execution in your IDE to connect to the same debug port that Forge uses (5005 or 8000 etc) and then start debugging!
==== viewing logs
To view local forge logs
==== build obsidian-generator locally
Then you can use it in the fabric8-generator
via: