-
Notifications
You must be signed in to change notification settings - Fork 618
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
added project_id to defined variables #1722
added project_id to defined variables #1722
Conversation
Hi @Aditya-PS-05, it looks like your proposed code changes introduced some unexpected test failures. You may want to check out the JUnit testing we have and see if any adjustment to our existing tests you will need to make. |
@krisstern , try to test with mvn but it's showing errors in pom.xml. Should I create a new issue? Or only it's os specific in my ubuntu22.04 LTS |
Hi @Aditya-PS-05, could you please share what errors you see regarding |
So I have just pulled your code and ran |
When running errors:
and when running errors
|
Regarding #1722 (comment): @Aditya-PS-05 Did you try to run |
openjdk 21.0.5 2024-10-15 LTS when running res:
|
I have checked I don't think it is a |
And I am asking this for the 3rd time: Which Java JDK are you using? |
Sir, I already answered it it's OpenJDK 21.0.5 2024-10-15 LTS |
My apologies you answered right after quoting |
And which Maven version are you currently using? |
Apache Maven 3.6.3 |
got it |
@Aditya-PS-05 I think your Maven version is too old. The latest version is 3.9.x. So you may want to download the latest one say from here: https://maven.apache.org/download.cgi. |
@@ -115,7 +115,7 @@ public final class CauseData { | |||
this.actionType = Objects.requireNonNull(actionType, "actionType must not be null."); | |||
this.sourceProjectId = Objects.requireNonNull(sourceProjectId, "sourceProjectId must not be null."); | |||
this.targetProjectId = Objects.requireNonNull(targetProjectId, "targetProjectId must not be null."); | |||
this.projectId = Objects.requireNonNull(projectId, "projectId must not be null."); | |||
this.projectId = projectId == null ? 0 : projectId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.projectId = projectId == null ? 0 : projectId; | |
this.projectId = Objects.requireNonNull(projectId, "projectId must not be null."); |
We should not change the original logic for handling the projectId
in "src/main/java/com/dabsquared/gitlabjenkins/cause/CauseData.java"
closes #1693
added project_id to defined variables
Submitter checklist