Bug 1878748 - Pipeline added in import flow fails if app is not in the git root directory
Summary: Pipeline added in import flow fails if app is not in the git root directory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.6.0
Assignee: Christoph Jerolimov
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-14 12:54 UTC by Christoph Jerolimov
Modified: 2024-03-08 10:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:40:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Pipeline added in import flow do not fails if app is not in the git root directory-1 (74.48 KB, image/png)
2020-10-12 10:47 UTC, spathak@redhat.com
no flags Details
Pipeline added in import flow do not fails if app is not in the git root directory-2 (95.32 KB, image/png)
2020-10-12 10:48 UTC, spathak@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6614 0 None closed Bug 1878748: Set the PATH_CONTEXT default param if its part of the pipeline template 2020-10-12 03:22:06 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:41:07 UTC

Description Christoph Jerolimov 2020-09-14 12:54:25 UTC
Description of problem:
When adding a pipeline via the import flow, user can provide a context dir for the git repository of the application. This context dir is not set in the generated pipeline and therefore the pipeline does not find the application code in the given git repo.

Version-Release number of selected component (if applicable):
OpenShift Console 4.6
OpenShift Pipeline Operator 1.0 and 1.1

How reproducible:
Always

Steps to Reproduce:
1. Add the OpenShift Pipeline Operator
2. Import a Git Repository which has the s2i source code not in the root directory of the repo. For example:
Git Repo: https://github.com/jerolimov/docker
Context path: /nodeinfo
Enable the "Add Pipeline" option!
3. Run the new pipeline

Actual results:
Build fails because it could not find the source code.

Expected results:
Build runs successfully.

Additional info:
None

Comment 2 spathak@redhat.com 2020-10-12 10:47:58 UTC
Created attachment 1720923 [details]
Pipeline added in import flow do not fails if app is not in the git root directory-1

Comment 3 spathak@redhat.com 2020-10-12 10:48:35 UTC
Created attachment 1720924 [details]
Pipeline added in import flow do not fails if app is not in the git root directory-2

Comment 4 spathak@redhat.com 2020-10-12 10:49:46 UTC
Verified on build version: 4.6.0-0.nightly-2020-10-03-051134
Browser version: chrome 84

Comment 6 errata-xmlrpc 2020-10-27 16:40:46 UTC
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 (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2020:4196

Comment 7 amelia 2024-03-08 10:15:28 UTC
Thank you for letting me know that the bug report has been closed with a resolution of ERRATA. I appreciate the link to the advisory for OpenShift Container Platform 4.6 GA Images and will refer to it to find the updated files. If the solution does not work for me, I will open a new bug report. https://www.kmfusa.org/


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