-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tekton demo improvements #675
Conversation
There is quite a delay in the clean up. I think folks may think the script is hung. Suggestion is to log the cleanup as it works through or add a message it may take 2 minutes or so. :)
|
hrm.. still have a bug on the pelorus test.. unrelated to this PR
|
50d1f58
to
f7979d9
Compare
@weshayutin added some printf statements to be more informative what's happening. |
The current_branch is not substituted in the buildConfig in 05- |
We would have to make sure we sync the branch name w/ the app name for this to work.. perhaps a fix
|
f7979d9
to
8699693
Compare
@weshayutin can't reproduce this. Maybe you are using old copy of this PR? |
Reworked a bit to include such. It's actually in 2 places, first is the template which takes the URI and REF and then it translates into tekton parameters. Also added check if the Pelorus installation is suitable to run the demo (commit time properly monitoring namespace where we are building app). |
8699693
to
92644b1
Compare
/test 4.9-e2e-openshift |
Couple of changes: 1. Tekton demo can ran from local source tree (without -g flag). 2. Running with -g flag ensures modifications to the pelorus git project happens in the temporary directory and not local source tree 3. Better handling of branches: - if remote branch exists, use it - if remote branch does not exists, create one 4. Cleanup function added. 5. Fix binary build to allow multiple runs Signed-off-by: Michal Pryc <mpryc@redhat.com>
92644b1
to
bf64946
Compare
multiple builds working on binary :) woot thanks! Tested w/ demo apps./demo-tekton.sh -b buildconfig -n demoapp1 -a demoapp1 -g https://github.com/weshayutin/pelorus.git -r demoapp1 -c 12 -t 5 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: weshayutin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Couple of changes:
Signed-off-by: Michal Pryc mpryc@redhat.com
Testing Instructions
Local directory run:
clone pelorus fork, run demo on existing branch or non-exising, e.g.
Temp directory
Failing master, we really don't want to run this script with master branch...
@redhat-cop/mdt