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

[JENKINS-71364] Check if parent job is MatrixConfiguration instead of MatrixProject #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lleroy
Copy link
Contributor

@lleroy lleroy commented Jul 12, 2023

Update PerforceScm.java -
Check if parent job is MatrixConfiguration instead of MatrixProject when doing a matrix build: checkouts should be the same for each run of the matrix build see also https://issues.jenkins.io/projects/JENKINS/issues/JENKINS-71364

Testing done

Submitter checklist

Edit tasklist title
Beta Give feedback Tasklist Submitter checklist, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
    Options
  2. Ensure that the pull request title represents the desired changelog entry
    Options
  3. Please describe what you did
    Options
  4. Link to relevant issues in GitHub or Jira
    Options
  5. Link to relevant pull requests, esp. upstream and downstream changes
    Options
  6. Ensure you have provided tests - that demonstrates feature works or fixes the issue
    Options

Update PerforceScm.java - 
Check if parent job is MatrixConfiguration instead of MatrixProject when doing a matrix build: checkouts should be the same for each run of the matrix build
see also https://issues.jenkins.io/projects/JENKINS/issues/JENKINS-71364
@lleroy lleroy changed the title Check if parent job is MatrixConfiguration instead of MatrixProject [JENKINS-71364] Check if parent job is MatrixConfiguration instead of MatrixProject Jul 13, 2023
@lleroy
Copy link
Contributor Author

lleroy commented Oct 16, 2023

@p4paul : could you have a look to have this (rather trivial) fix merged? I need it on my production server and now have to use a custom-build version of the plugin, but would like to use an official (future) release

@skumar7322
Copy link
Contributor

thanks @lleroy for creating this PR. We appreciate your effort to improve the p4-plugin.

When running matrix builds perforce gives an option to run builds simultaneously and sequentially. If builds are executed simultaneously, all builds will sync with the same changelist. But if builds are executed sequentially and a new change is committed while the first build is running, the second build will sync to the new change.

To toggle between this we have added the "Run each Configuration Sequentially" checkbox.
image

Could you please check if this can be used to solve your issue?
I need to check if the behaviors to sync to the latest for the second build was intended.

@lleroy
Copy link
Contributor Author

lleroy commented Feb 22, 2024 via email

@skumar7322
Copy link
Contributor

agree the fix is simple... But if we merge it, then the builds running sequentially or simultaneously will always sync to the changelist that the parent has identified for the first build. There will be no way to toggle between sync to the latest change or change identified when the first build started (need to check how valid this scenario is).

I feel we should look into the last changes when this bug was introduced. It would be helpful if you could provide the last version of the p4-plugin in which this was working.

@lleroy
Copy link
Contributor Author

lleroy commented Feb 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants