Git Product home page Git Product logo

jbosstools-openshift's Introduction

The OpenShift Tools project

Summary

OpenShift Tools provides wizards and views for creating and maintaining OpenShift applications.

Install

OpenShift Tools is part of JBoss Tools from which it can be downloaded and installed on its own or together with the full JBoss Tools distribution.

Get the code

The easiest way to get started with the code is to create your own fork, and then clone your fork:

$ git clone [email protected]:<you>/jbosstools-openshift.git
$ cd jbosstools-openshift
$ git remote add upstream git://github.com/jbosstools/jbosstools-openshift.git

At any time, you can pull changes from the upstream and merge them onto your master:

$ git checkout master               # switches to the 'master' branch
$ git pull upstream master          # fetches all 'upstream' changes and merges 'upstream/master' onto your 'master' branch
$ git push origin                   # pushes all the updates to your fork, which should be in-sync with 'upstream'

The general idea is to keep your 'master' branch in-sync with the 'upstream/master'.

Building OpenShift Tools

To build OpenShift Tools requires specific versions of Java (1.6+) and +Maven (3.1+). See this link for more information on how to setup, run and configure build.

This command will run the build:

$ mvn clean verify

If you just want to check if things compiles/builds you can run:

$ mvn clean verify -DskipTest=true

But do not push changes without having the new and existing unit tests pass!

When making changes to the openshift-restclient-java, it needs to be built and its jar copied to org.jboss.tools.openshift.client/lib in order to be consumed (workspace resolution doesn't work for projects embedded as jars within Eclipse plugins). The best way to achieve a quick turnaround it to have openshift-restclient-java opened as an Eclipse project and leverage its jar.outputDir property, so that Maven can generate the rest client jar directly in the org.jboss.tools.openshift.client/lib folder, followed by a directory refresh.

  • Right-click on the openshift-rest-client-java project
  • Run As > Maven Build
  • set goals=package
  • add jar.outputDir property, set the absolute path to org.jboss.tools.openshift.client/lib as value
  • In the refresh tab, enable refresh resources upon completion
  • click specify resources..., select org.jboss.tools.openshift.client/lib
  • Run, profit!

Subsequent Maven runs will reuse this launch configuration automatically.

Contribute fixes and features

OpenShift Tools is open source, and we welcome anybody that wants to participate and contribute!

If you want to fix a bug or make any changes, please log an issue in the JBoss Tools JIRA describing the bug or new feature and give it a component type of openshift. Then we highly recommend making the changes on a topic branch named with the JIRA issue number. For example, this command creates a branch for the JBIDE-1234 issue:

$ git checkout -b jbide-1234

After you're happy with your changes and a full build (with unit tests) runs successfully, commit your changes on your topic branch (with good comments). Then it's time to check for any recent changes that were made in the official repository:

$ git checkout master               # switches to the 'master' branch
$ git pull upstream master          # fetches all 'upstream' changes and merges 'upstream/master' onto your 'master' branch
$ git checkout jbide-1234           # switches to your topic branch
$ git rebase master                 # reapplies your changes on top of the latest in master
                                      (i.e., the latest from master will be the new base for your changes)

If the pull grabbed a lot of changes, you should rerun your build with tests enabled to make sure your changes are still good.

You can then push your topic branch and its changes into your public fork repository:

$ git push origin jbide-1234         # pushes your topic branch into your public fork of OpenShift Tools

And then generate a pull-request where we can review the proposed changes, comment on them, discuss them with you, and if everything is good merge the changes right into the official repository.

jbosstools-openshift's People

Contributors

adietish avatar alexeykazakov avatar apupier avatar bdshadow avatar coreydaley avatar dazarov avatar dependabot[bot] avatar dgolovin avatar fbricon avatar ibuziuk avatar irooskov avatar jcantrill avatar jeffmaury avatar jkopriva avatar jrichter1 avatar maxandersen avatar michellemurray avatar mickaelistria avatar mmalina avatar nickboldt avatar odockal avatar psrna avatar rafabene avatar rhopp avatar robstryker avatar sbouchet avatar scabanovich avatar snjeza avatar tsmaeder avatar xcoulon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jbosstools-openshift's Issues

jbosstools/jbosstools-base related issues

[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: org.jboss.tools.common.core 3.8.3.qualifier
[ERROR] Missing requirement: org.jboss.tools.common.core 3.8.3.qualifier requires 'bundle org.jboss.tools.foundation.core 1.3.3' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: org.jboss.tools.common.plugins:org.jboss.tools.common.core:3.8.3-SNAPSHOT @ E:\Jyoti\jbosstools-base\common\plugins\org.jboss.tools.common.core\pom.xml: See log for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

Error While Executing jbosstools/jbosstools-openshift

To build jbosstools-openshift-4.4.3 I followed following steps

  1. I clone jbosstools-base and jbosstools-server which are required for the building jbosstools-openshift-4.4.3.

  2. while executing the jbosstools-base I got error "Missing requirement: org.jboss.tools.common.core 3.8.3.qualifier requires 'bundle org.jboss.tools.foundation.core 1.3.3' but it could not be found".

  3. I build the org.jboss.tools.foundation.core 1.3.3 plugin and add into eclipse plugin folder and restart the eclipse IDE still facing the isuue.

BrowserContainsText - refreshig page when JS is not loaded yet

Condition test BrowserContainsText is not stable for pages where JS is loading data after page is loaded. G.e. redirecting OSIO login page using different account provider (jboss developer) results in refreshing already loaded page (Red Hat login page) instead of refreshing page for which there was a redirection attempt (jboss developer). In case of trying to set URL in code validity of page is lost (most likely because CSFR token is originally sent with redirecting using JS .click() ).
Solution imo can be by override method arguments to add
private boolean refresh; with
public BrowserContainsText(String url, String text, boolean refresh) { ... }
where page refresh will happen only when by default refresh=true .
PR in progress..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.