Skip to content

Use the same branch name for ITs on Jenkins#1263

Merged
olamy merged 3 commits intomasterfrom
jenkins-its-branch
Oct 5, 2023
Merged

Use the same branch name for ITs on Jenkins#1263
olamy merged 3 commits intomasterfrom
jenkins-its-branch

Conversation

@slawekjaranowski
Copy link
Copy Markdown
Member

We have the same logic on GitHub actions.

When branch with the same name as in repository exist in integration test we should use it.

@slawekjaranowski slawekjaranowski self-assigned this Sep 25, 2023
Copy link
Copy Markdown
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repository needs to be changed to point to the repository that hosts the PR branch.

checkout([$class: 'GitSCM',
branches: [[name: ITS_BRANCH]],
extensions: [[$class: 'CloneOption', depth: 1, noTags: true, shallow: true]],
userRemoteConfigs: [[url: 'https://github.com/apache/maven-integration-testing.git']]])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're still using the maven-integration-testing GitHub repo, but it needs to point to the same repository from the PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we say earlier to use only master for this build?
Or I'm lost?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, then, what's the point of this PR ? I'm lost too...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jobs on jenkins are not executed for PR from forked repository.

The goal is minimize a failed build PR on jenkins, when we have change in Maven and connected in ITs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have a https://github.com/apache/maven-integration-testing/tree/maven-3.8.x branch in ITs - so this branch should be used for testing maven-3.8.x and so on

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gnodet, @olamy I still think that change is good enough

build for #1273 pass on GH but fail on Jenkins

@olamy olamy merged commit 882c8dd into master Oct 5, 2023
@olamy olamy deleted the jenkins-its-branch branch October 5, 2023 01:44
slawekjaranowski added a commit that referenced this pull request Oct 17, 2023
slawekjaranowski added a commit that referenced this pull request Oct 17, 2023
@olamy olamy mentioned this pull request Apr 2, 2026
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants