Bug 1878748

Summary: Pipeline added in import flow fails if app is not in the git root directory
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.6CC: aos-bugs, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:40:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Pipeline added in import flow do not fails if app is not in the git root directory-1
none
Pipeline added in import flow do not fails if app is not in the git root directory-2 none

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 Comment hidden (spam)
Comment 8 Florence Gayhart 2024-07-05 08:54:10 UTC Comment hidden (spam)
Comment 9 PuppyPirouette 2024-11-18 10:56:25 UTC Comment hidden (spam)