-
Notifications
You must be signed in to change notification settings - Fork 35
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
jenkinsfile: revert check for changed files #622
Conversation
Signed-off-by: markoburcul <marko@status.im>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
I don't know enough about this at the moment. Seems like a good find at first glance, but also don't know if it's not going start building unrelated PRs again. Maybe keeping both the setting and check could do, but approving so you can continue testing. |
@markoburcul please, see #591 (comment) where unrelated PR was built. |
I added also this in the Jenkins settings for this pipeline: Since I saw this pr wasn't even visible in the list of PRs of Jenkins UI. Do you want to enable the builds from forks that are submitted as PRs or no? |
@markoburcul for trusted ones yes. But how is it related to the original issue? That PR has no relevant changes. Maybe you shouldn't have removed the changes as well, as I raised in #622 (comment). |
Because I scanned the repository and Jenkins automatically fetched this PR. It contains the old Jenkinsfile and thus no filtering was applied to stages. It should be updated with latest changes in main to skip stages with building and commenting on pr. |
Reverted the check for changes in the
apps/connector
directory.What we were missing before with this kind of check is this setting in the Jenkins pipeline:
and as explained here:
This allows, when PR is opened, that changelog exists and we don't need to execute git commands manually within jenkinsfile which is prone to errors.
The motivation for this was that previously the
Strategy
forDiscover pull requests from origin
wasMerging the pull request with the current target branch revision
and this caused the PR builds to happen when there were changes in themain
:I've changed this to:
But with this change a normal PR build would fail on our
Check Changed Files
stage with:because there is an uncomplete fetch of changes.