Skip to content

Commit

Permalink
Merge pull request #329 from zebrunner/develop
Browse files Browse the repository at this point in the history
2.2.1 rc
  • Loading branch information
vdelendik authored Mar 5, 2024
2 parents fb391f8 + e861674 commit f65b6da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public class PullRequestJobFactory extends PipelineFactory {
printContributedVariables(isLogLevelActive(Logger.LogLevel.DEBUG))
printPostContent(isLogLevelActive(Logger.LogLevel.DEBUG))
silentResponse(false)
regexpFilterText(String.format(webHookArgs.prFilterText, this.repoUrl))
regexpFilterText(String.format(webHookArgs.prFilterText, resolveUrl(this.repoUrl)))
regexpFilterExpression(String.format(webHookArgs.prFilterExpression, this.repoUrl))
}
}
Expand Down
17 changes: 2 additions & 15 deletions src/com/zebrunner/jenkins/pipeline/runner/maven/TestNG.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,6 @@ public class TestNG extends Runner {
"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE")

addBrowserStackCapabilities()
addProviderCapabilities()

def goals = Configuration.resolveVars(defaultBaseMavenGoals)

Expand Down Expand Up @@ -766,18 +765,9 @@ public class TestNG extends Runner {
return Configuration.get(parameterName)?.toBoolean() ? capabilityName : ""
}

protected addProviderCapabilities() {
protected addProviderCapability(capabilityName, capabilityValue) {
def provider = getProvider().toLowerCase()
def platform = Configuration.get("job_type")
if ("selenium".equalsIgnoreCase(provider) || "zebrunner".equalsIgnoreCase(provider) || "mcloud".equalsIgnoreCase(provider)) {
// #190: setup default settings only if no explicit disabler via overrideFields!
if (!"false".equalsIgnoreCase(Configuration.get("capabilities.enableVideo"))) {
Configuration.set("capabilities.enableVideo", "true")
}
if (!"false".equalsIgnoreCase(Configuration.get("capabilities.enableLog"))) {
Configuration.set("capabilities.enableLog", "true")
}
}
Configuration.set("capabilities" + "." + provider + ":" + capabilityName, capabilityValue)
}

protected def addBrowserStackCapabilities() {
Expand Down Expand Up @@ -1270,9 +1260,6 @@ public class TestNG extends Runner {
if (isParamEmpty(Configuration.get("provider"))) {
// #177: setup default provider=zebrunner by default
Configuration.set("provider", "zebrunner")
Configuration.set("capabilities.provider", "zebrunner")
} else {
Configuration.set("capabilities.provider", Configuration.get("provider"))
}

return Configuration.get("provider")
Expand Down

0 comments on commit f65b6da

Please sign in to comment.