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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-72649] Add project parameter to SSH commands #503

Merged
merged 3 commits into from Mar 8, 2024

Conversation

JGranha
Copy link
Contributor

@JGranha JGranha commented Feb 12, 2024

Add --project to the SSH review command calls so that it is possible to distinguish between conflicting change numbers within distinct projects. This change is backwards compatible to earlier versions of Gerrit, but becomes relevant both from optimization reasons since 2.15 and to prevent change collisions from 3.5 with the support for imported projects.

Bug: Issue JENKINS-72649
Release-Notes: Add project parameter to SSH commands

Link: https://issues.jenkins.io/browse/JENKINS-72649

Testing done

All unit tests were run and are working. Integrated test with jenkins, applying default configuration to gerrit-trigger.xml and edits also functioning.

Unit test results:
...
[INFO] Running com.sonyericsson.hudson.plugins.gerrit.trigger.version.VersionCheckTest
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.139 s -- in com.sonyericsson.hudson.plugins.gerrit.trigger.version.VersionCheckTest
[INFO]
[INFO] Results:
[INFO]
[WARNING] Flakes:
[WARNING] com.sonyericsson.hudson.plugins.gerrit.trigger.dependency.IntegrationTest.testChildBuildSeeParametersOfParentJob
[ERROR] Run 1: IntegrationTest.testChildBuildSeeParametersOfParentJob:84->waitCompletedBuild:108 Timeout No build completed within 10s
[INFO] Run 2: PASS
[INFO]
[INFO]
[WARNING] Tests run: 601, Failures: 0, Errors: 0, Skipped: 1, Flakes: 1
[INFO]
[INFO]
[INFO] --- checkstyle:2.16:check (test-check) @ gerrit-trigger ---
[INFO] Starting audit...
Audit done.

Before:

Screenshot at 2024-02-12 15-49-31

After:
Screenshot at 2024-02-12 15-56-34

Tasks

No tasks being tracked yet.

JGranha and others added 2 commits February 12, 2024 15:27
Add --project to the SSH review command calls so that it is possible
to distinguish between conflicting change numbers within distinct projects.
This change is backwards compatible to earlier versions of Gerrit, but
becomes relevant both from optimization reasons since 2.15 and to
prevent change collisions from 3.5 with the support for imported
projects.

Bug: Issue JENKINS-72649
Release-Notes: Add project parameter to SSH commands
@rsandell rsandell changed the title JENKINS-72649: Add project parameter to SSH commands [JENKINS-72649] Add project parameter to SSH commands Mar 8, 2024
@rsandell rsandell added the bug label Mar 8, 2024
@rsandell rsandell merged commit 20643d8 into jenkinsci:master Mar 8, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants