Bug 1250153 - webui doesn't accept branch or tag information in source url
webui doesn't accept branch or tag information in source url
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Jessica Forrester
Yanping Zhang
Depends On:
  Show dependency treegraph
Reported: 2015-08-04 11:27 EDT by Erik M Jacobs
Modified: 2015-09-22 15:52 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Feature: The OpenShift Enterprise web console now allows users to specify the git ref from which their build will be created. Reason: So that users may choose the tag or branch from which to create their build. Result: Web console users may choose the tag or branch from which to create their build.
Story Points: ---
Clone Of:
Last Closed: 2015-09-22 15:52:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Erik M Jacobs 2015-08-04 11:27:02 EDT
new-app will take a git branch via #branchname at the end of a source url

the webui doesn't do this, and treats #branchname as part of the URL.

This is inconsistent behavior.
Comment 2 Jessica Forrester 2015-08-18 09:35:43 EDT
Fix is in https://github.com/openshift/origin/pull/4223

You can input a URL like https://github.com/openshift/nodejs-ex#v1.0.1 and it will strip off the ref and use that instead of "master".  If no ref is specified then it will still default to master.
Comment 5 openshift-github-bot 2015-08-18 18:05:00 EDT
Commit pushed to master at https://github.com/openshift/origin

Bug 1250153 - console doesnt accept git ref in create from source URL
Comment 7 Yanping Zhang 2015-08-19 01:51:32 EDT
The fix in pull4223 works on origin, but we need a new ose puddle with the fix to verify this enterprise bug.  Pls provide the puddle ,then move the bug ON_QA again.
Comment 8 Yanping Zhang 2015-09-08 23:01:43 EDT
Verified on puddle OpenShiftEnterprise/3.0/2015-09-08.1
# oc version
oc v3.0.1.900-185-g2f7757a
kubernetes v1.1.0-alpha.0-1605-g44c91b1

Steps to verify:
1.On web console, create app with: https://github.com/openshift/nodejs-ex#v1.0.1 and choose image nodejs
2.Check the buildconfig, pod and build.

Actual results:
1.App is created successfully.
2.Build is completed and pod is running.
In the buildconfig, the source is using ref v1.0.1:
      ref: v1.0.1
      uri: https://github.com/openshift/nodejs-ex
    type: Git
And from the build logs, confirm that it used ref v1.0.1: "Checked out "v1.0.1""

So move the bug to verified.
Comment 10 errata-xmlrpc 2015-09-22 15:52:43 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.