-
Notifications
You must be signed in to change notification settings - Fork 77
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
Pipeline support #25
Open
mazimkhan
wants to merge
6
commits into
jenkinsci:master
Choose a base branch
from
mazimkhan:pipeline
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Pipeline support #25
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5e9c28a
Enhancement for build custom fields
98c3295
Feature to parser custom fields from Junit.xml and update in TestLink
a071272
Pipeline steps implementation
8d6a2f8
Merge branch 'junit_enh' into pipeline
d9f3764
Using abstract base class Run instead of AbstractBuild for usage accr…
f52318c
Changed pipeline-workflow-api version to match Pipeline version in Je…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ target/ | |
inject-tests/ | ||
test-output | ||
*~ | ||
.idea |
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
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 |
---|---|---|
|
@@ -58,6 +58,10 @@ public class AbstractTestLinkBuilder extends Builder { | |
* The name of the Build. | ||
*/ | ||
protected String buildName; | ||
/** | ||
* The Build custom fields. | ||
*/ | ||
protected String buildCustomFields; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once we merge that other pull request from testlink-java-api, we can merge this PR too. |
||
/** | ||
* The platform name. | ||
*/ | ||
|
@@ -133,7 +137,7 @@ public class AbstractTestLinkBuilder extends Builder { | |
* Create a AbstractTestLinkBuilder. | ||
*/ | ||
public AbstractTestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, | ||
String platformName, String buildName, String customFields, String testPlanCustomFields, List<BuildStep> singleBuildSteps, | ||
String platformName, String buildName, String buildCustomFields, String customFields, String testPlanCustomFields, List<BuildStep> singleBuildSteps, | ||
List<BuildStep> beforeIteratingAllTestCasesBuildSteps, List<BuildStep> iterativeBuildSteps, | ||
List<BuildStep> afterIteratingAllTestCasesBuildSteps, Boolean transactional, | ||
Boolean failedTestsMarkBuildAsFailure, Boolean failIfNoResults, Boolean failOnNotRun, | ||
|
@@ -144,6 +148,7 @@ public AbstractTestLinkBuilder(String testLinkName, String testProjectName, Stri | |
this.testPlanName = testPlanName; | ||
this.platformName = platformName; | ||
this.buildName = buildName; | ||
this.buildCustomFields = buildCustomFields; | ||
this.customFields = customFields; | ||
this.testPlanCustomFields = testPlanCustomFields; | ||
this.singleBuildSteps = singleBuildSteps; | ||
|
@@ -162,12 +167,12 @@ public AbstractTestLinkBuilder(String testLinkName, String testProjectName, Stri | |
* @deprecated to add test plan custom fields | ||
*/ | ||
public AbstractTestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, | ||
String platformName, String buildName, String customFields, List<BuildStep> singleBuildSteps, | ||
String platformName, String buildName, String buildCustomFields, String customFields, List<BuildStep> singleBuildSteps, | ||
List<BuildStep> beforeIteratingAllTestCasesBuildSteps, List<BuildStep> iterativeBuildSteps, | ||
List<BuildStep> afterIteratingAllTestCasesBuildSteps, Boolean transactional, | ||
Boolean failedTestsMarkBuildAsFailure, Boolean failIfNoResults, Boolean failOnNotRun, | ||
List<ResultSeeker> resultSeekers) { | ||
this(testLinkName, testProjectName, testPlanName, platformName, buildName, customFields, | ||
this(testLinkName, testProjectName, testPlanName, platformName, buildName, buildCustomFields, customFields, | ||
/*testPlanCustomFields*/ null, singleBuildSteps, beforeIteratingAllTestCasesBuildSteps, | ||
iterativeBuildSteps, afterIteratingAllTestCasesBuildSteps, transactional, failedTestsMarkBuildAsFailure, | ||
failIfNoResults, failOnNotRun, resultSeekers); | ||
|
@@ -181,8 +186,8 @@ public AbstractTestLinkBuilder(String testLinkName, String testProjectName, Stri | |
* @param testPlanName TestLink Test Plan name. | ||
* @param platformName TestLink Platform name. | ||
* @param buildName TestLink Build name. | ||
* @param buildCustomFields TestLink Build custom fields. | ||
* @param customFields TestLink comma-separated list of Custom Fields. | ||
* @param keyCustomField Key custom field. | ||
* @param singleBuildSteps List of build steps to execute once for all automated test cases. | ||
* @param beforeIteratingAllTestCasesBuildSteps Command executed before iterating all test cases. | ||
* @param iterativeBuildSteps List of build steps to execute for each Automated Test Case. | ||
|
@@ -194,13 +199,13 @@ public AbstractTestLinkBuilder(String testLinkName, String testProjectName, Stri | |
* @deprecated | ||
*/ | ||
public AbstractTestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, | ||
String platformName, String buildName, String customFields, Boolean executionStatusNotRun, | ||
String platformName, String buildName, String buildCustomFields, String customFields, Boolean executionStatusNotRun, | ||
Boolean executionStatusPassed, Boolean executionStatusFailed, Boolean executionStatusBlocked, | ||
List<BuildStep> singleBuildSteps, List<BuildStep> beforeIteratingAllTestCasesBuildSteps, | ||
List<BuildStep> iterativeBuildSteps, List<BuildStep> afterIteratingAllTestCasesBuildSteps, | ||
Boolean transactional, Boolean failedTestsMarkBuildAsFailure, Boolean failIfNoResults, | ||
Boolean failOnNotRun, List<ResultSeeker> resultSeekers) { | ||
this(testLinkName, testProjectName, testPlanName, platformName, buildName, customFields, | ||
this(testLinkName, testProjectName, testPlanName, platformName, buildName, buildCustomFields, customFields, | ||
/*testPlanCustomFields*/ null, singleBuildSteps, beforeIteratingAllTestCasesBuildSteps, | ||
iterativeBuildSteps, afterIteratingAllTestCasesBuildSteps, transactional, failedTestsMarkBuildAsFailure, | ||
failIfNoResults, failOnNotRun, resultSeekers); | ||
|
@@ -226,6 +231,8 @@ public String getBuildName() { | |
return this.buildName; | ||
} | ||
|
||
public String getBuildCustomFields() { return this.buildCustomFields; } | ||
|
||
public String getCustomFields() { | ||
return this.customFields; | ||
} | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What was the reason for using 1.9.14-1-SNAPSHOT? Which version of TestLink did you test your code against, please?
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.
Never mind the reason for using the snapshot. Probably you were using your local version with the buildCustomFields.