Pessoal, estou levando um erro ao rodar o projeto no jenkins (Tentei rodar no local e deu o mesmo).
Ao executar o jenkins o mesmo ao buildar ele exibe o erro:
[Pipeline] sh
+ ./gradlew :disney:test -Denv=null -Dbrand=null --tests=Regressão dos testes do fidelidadeSchemaTests
FAILURE: Build failed with an exception.
* What went wrong:
Task 'dos' not found in root project 'api-test'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Report)
[Pipeline] script
[Pipeline] {
[Pipeline] step
[disney-api-test] $ /home/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allure/bin/allure generate -c -o /home/jenkins/workspace/api-hlg/build/api-test/allure-report
allure-results does not exists
Report successfully generated to /home/jenkins/workspace/api-hlg/build/disney-api-test/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Cleanup)
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] discordSend
Sending notification to Discord.
[Pipeline] End of Pipeline
Finished: FAILURE
build.gradle
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
ext {
nexusUsername = 'nexus.user'
nexusPassword = '1YBwMA0i4jTACQ'
nexusReleasesUrl = 'https://nexus.digitalops.gpa.digital/repository/maven-releases/'
nexusSnapshotUrl = 'https://nexus.digitalops.gpa.digital/repository/maven-snapshots/'
}
dependencies {
classpath "io.franzbecker:gradle-lombok:4.0.0"
classpath "io.qameta.allure:allure-gradle:2.8.1"
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
url project.nexusSnapshotUrl
credentials {
username project.nexusUsername
password project.nexusPassword
}
}
maven {
url project.nexusReleasesUrl
credentials {
username project.nexusUsername
password project.nexusPassword
}
}
flatDir {
dirs '../libs'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: "io.franzbecker.gradle-lombok"
apply plugin: 'io.qameta.allure'
sourceCompatibility = JavaVersion.VERSION_1_8
allure {
autoconfigure = true
version = '2.4.1'
}
group "gpa.backend.testing"
version "0.0.1"
dependencies {
testImplementation 'junit:junit:4.12'
}
}
Já tentei de tudo e até então sem sucesso, executei esse mesmo comando ./gradlew :disney:test -Denv=null -Dbrand=null --tests=Regressão dos testes do fidelidadeSchemaTests e nada, onde tem null eu também já adicionei parâmetros e removi o mesmo, alguém poderia me da essa luz ?