-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #342 from ls1intum/chore/update-benchmarking-tool
Add buildConfig and update endpoints
- Loading branch information
Showing
3 changed files
with
212 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
168 changes: 168 additions & 0 deletions
168
src/main/java/de/tum/cit/ase/artemisModel/ProgrammingExerciseBuildConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
package de.tum.cit.ase.artemisModel; | ||
|
||
import jakarta.annotation.Nullable; | ||
|
||
public class ProgrammingExerciseBuildConfig extends DomainObject { | ||
|
||
private Boolean sequentialTestRuns; | ||
|
||
private String branch; | ||
|
||
private String buildPlanConfiguration; | ||
|
||
private String buildScript; | ||
|
||
private boolean checkoutSolutionRepository = false; | ||
|
||
private String testCheckoutPath; | ||
|
||
private String assignmentCheckoutPath; | ||
|
||
private String solutionCheckoutPath; | ||
|
||
private int timeoutSeconds; | ||
|
||
private String dockerFlags; | ||
|
||
private ProgrammingExercise programmingExercise; | ||
|
||
private boolean testwiseCoverageEnabled; | ||
|
||
@Nullable | ||
private String theiaImage; | ||
|
||
private boolean allowBranching = false; // default value | ||
|
||
private String branchRegex; | ||
|
||
@Nullable | ||
private String buildPlanAccessSecret; | ||
|
||
public String getBuildPlanAccessSecret() { | ||
return buildPlanAccessSecret; | ||
} | ||
|
||
public void setBuildPlanAccessSecret(String buildPlanAccessSecret) { | ||
this.buildPlanAccessSecret = buildPlanAccessSecret; | ||
} | ||
|
||
public String getBranchRegex() { | ||
return branchRegex; | ||
} | ||
|
||
public void setBranchRegex(String branchRegex) { | ||
this.branchRegex = branchRegex; | ||
} | ||
|
||
public boolean isAllowBranching() { | ||
return allowBranching; | ||
} | ||
|
||
public void setAllowBranching(boolean allowBranching) { | ||
this.allowBranching = allowBranching; | ||
} | ||
|
||
public String getTheiaImage() { | ||
return theiaImage; | ||
} | ||
|
||
public void setTheiaImage(String theiaImage) { | ||
this.theiaImage = theiaImage; | ||
} | ||
|
||
public boolean isTestwiseCoverageEnabled() { | ||
return testwiseCoverageEnabled; | ||
} | ||
|
||
public void setTestwiseCoverageEnabled(boolean testwiseCoverageEnabled) { | ||
this.testwiseCoverageEnabled = testwiseCoverageEnabled; | ||
} | ||
|
||
public ProgrammingExercise getProgrammingExercise() { | ||
return programmingExercise; | ||
} | ||
|
||
public void setProgrammingExercise(ProgrammingExercise programmingExercise) { | ||
this.programmingExercise = programmingExercise; | ||
} | ||
|
||
public String getDockerFlags() { | ||
return dockerFlags; | ||
} | ||
|
||
public void setDockerFlags(String dockerFlags) { | ||
this.dockerFlags = dockerFlags; | ||
} | ||
|
||
public int getTimeoutSeconds() { | ||
return timeoutSeconds; | ||
} | ||
|
||
public void setTimeoutSeconds(int timeoutSeconds) { | ||
this.timeoutSeconds = timeoutSeconds; | ||
} | ||
|
||
public String getSolutionCheckoutPath() { | ||
return solutionCheckoutPath; | ||
} | ||
|
||
public void setSolutionCheckoutPath(String solutionCheckoutPath) { | ||
this.solutionCheckoutPath = solutionCheckoutPath; | ||
} | ||
|
||
public String getAssignmentCheckoutPath() { | ||
return assignmentCheckoutPath; | ||
} | ||
|
||
public void setAssignmentCheckoutPath(String assignmentCheckoutPath) { | ||
this.assignmentCheckoutPath = assignmentCheckoutPath; | ||
} | ||
|
||
public String getTestCheckoutPath() { | ||
return testCheckoutPath; | ||
} | ||
|
||
public void setTestCheckoutPath(String testCheckoutPath) { | ||
this.testCheckoutPath = testCheckoutPath; | ||
} | ||
|
||
public boolean isCheckoutSolutionRepository() { | ||
return checkoutSolutionRepository; | ||
} | ||
|
||
public void setCheckoutSolutionRepository(boolean checkoutSolutionRepository) { | ||
this.checkoutSolutionRepository = checkoutSolutionRepository; | ||
} | ||
|
||
public String getBuildScript() { | ||
return buildScript; | ||
} | ||
|
||
public void setBuildScript(String buildScript) { | ||
this.buildScript = buildScript; | ||
} | ||
|
||
public String getBuildPlanConfiguration() { | ||
return buildPlanConfiguration; | ||
} | ||
|
||
public void setBuildPlanConfiguration(String buildPlanConfiguration) { | ||
this.buildPlanConfiguration = buildPlanConfiguration; | ||
} | ||
|
||
public String getBranch() { | ||
return branch; | ||
} | ||
|
||
public void setBranch(String branch) { | ||
this.branch = branch; | ||
} | ||
|
||
public Boolean getSequentialTestRuns() { | ||
return sequentialTestRuns; | ||
} | ||
|
||
public void setSequentialTestRuns(Boolean sequentialTestRuns) { | ||
this.sequentialTestRuns = sequentialTestRuns; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters