Skip to content
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

OnPush-carina demo request doesn't work with Bitbucket #420

Closed
dhreben opened this issue Feb 16, 2021 · 4 comments · Fixed by zebrunner/pipeline-ce#310
Closed

OnPush-carina demo request doesn't work with Bitbucket #420

dhreben opened this issue Feb 16, 2021 · 4 comments · Fixed by zebrunner/pipeline-ce#310
Assignees
Labels
Milestone

Comments

@dhreben
Copy link
Contributor

dhreben commented Feb 16, 2021

Test scenario:

1.Sign in Bitbucket
2.Migrate carina-demo project to Bitbucket
3.Open Jenkins
4.Run RegisterOrganization
5.Tap RegisterRepository

  • In scmType select Bitbucket
  • In repourl copy your carina-demo bitbucket HTTPS repository.

6.Run build
7. Open your terminal and run the following command echo -n username:password | base64 where username and password are your BitBucket credentials, this will return a token encoded in base64.
8.Open BitBucket repository page with carina-demo
9.Tap Repository Settings
10.Tap Webhooks
11.Tap add webhook.
12.Enter http://your-zebrunner-domain.com/jenkins/generic-webhook-trigger/invoke?token=bitbucket-token-here into URL field.
13.Check that Repository push is selected.
14.Tap save
15.Open repository page with carina-demo
16.Tap Readmi.md
17.Tap edit
18.Make small changes e.g. put a dot
19.Tap Commit
19.Open jenkins
20.Open your Bitbucket organization
21.Tap Carina-demo
22.Check that OnPush-carina-demo run new build.

Actual result : OnPush-carina demo request doesn't work with Bitbucket.

@dhreben dhreben added the bug label Feb 16, 2021
@ghost ghost added this to the 1.6 milestone Feb 16, 2021
@vdelendik vdelendik modified the milestones: 1.6, 1.7 Mar 9, 2021
@vdelendik vdelendik modified the milestones: 1.7, 1.8 Apr 29, 2021
@vdelendik vdelendik modified the milestones: 1.8, 1.9 Jun 21, 2021
@vdelendik vdelendik modified the milestones: 1.9, 1.10 Sep 28, 2021
@vdelendik vdelendik modified the milestones: 1.10, 2.0 Jan 16, 2022
@vdelendik vdelendik modified the milestones: 2.1, 2.2 Apr 23, 2022
@vdelendik vdelendik modified the milestones: 2.3, 2.4 Mar 6, 2023
@azarouski azarouski linked a pull request Jun 20, 2023 that will close this issue
@azarouski
Copy link
Contributor

PR - zebrunner/pipeline-ce#310
Need to retest

@ghost ghost assigned dhreben and unassigned vdelendik Jun 26, 2023
@dhreben
Copy link
Contributor Author

dhreben commented Jun 27, 2023

java.util.MissingFormatArgumentException: Format specifier '%s' after create RegisterRepository

@dhreben dhreben reopened this Jun 27, 2023
@vdelendik
Copy link
Contributor

@dhreben - make sure RegisterRepository has latest develop pipeline branch for Zebrunner-CE.
Based on the error it uses master or main...

@dhreben
Copy link
Contributor Author

dhreben commented Jul 6, 2023

Fixed

Steps:

  1. Open Bitbucket
  2. Create repository
  3. Clone carina-demo
  4. Select main branch
  5. Open Jenkins -> Management_Jobs -> RegisterOrganization-> Build
  6. Tap RegisterRepository
  • In scmType select Bitbucket
  • In repourl copy your carina-demo bitbucket HTTPS repository.
    7.Run build
  1. Click Manage jenkins->Manage credentials->System->Global credentals->Bitbucket webhook>Update>Change Password>enter 12345
  2. Open Bitbucket >Carina demo>Repository settings>Webhooks>add webhooks>http://................/jenkins/generic-webhook-trigger/invoke?token=12345>select push and pull request
  3. Open Bitbucket -> open carina-demo -> Select main branch
  4. Click carina-demo -> click README.md-> edit - > Enter e.g. Test- > Click Commit 2 times
  5. Open Jenkins and verify that pull request is triggered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants