We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
`//START-OF-SCRIPT node { def server = Artifactory.server 'artifactory'
withCredentials([usernamePassword(credentialsId: 'artifactory', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { server.username = "${USERNAME}" server.password = "${PASSWORD}" } def rtGradle = Artifactory.newGradleBuild() def buildInfo stage ('Clone') { git url: 'https://github.com/cloudacademy/devops-webapp.git' } stage ('Artifactory Configuration') { rtGradle.tool = "gradle-5.6.4" // Tool name from Jenkins configuration rtGradle.deployer repo: 'gradle-release-local', server: server rtGradle.resolver repo: 'jcenter', server: server } stage ('Gradle Build') { buildInfo = rtGradle.run rootDir: "./", buildFile: 'build.gradle', tasks: 'clean build' } stage ('Gradle Publish') { buildInfo = rtGradle.run rootDir: "./", buildFile: 'build.gradle', tasks: 'artifactoryPublish' } stage ('Artifactory Publish Build Info') { server.publishBuildInfo buildInfo }
} //END-OF-SCRIPT`
I am having an issue with Gradle build. It says that Couldn't find Gradle executable. I have posted a screenshot below
The text was updated successfully, but these errors were encountered:
I got the same issue !!
Sorry, something went wrong.
No branches or pull requests
`//START-OF-SCRIPT
node {
def server = Artifactory.server 'artifactory'
}
//END-OF-SCRIPT`
I am having an issue with Gradle build. It says that Couldn't find Gradle executable. I have posted a screenshot below
The text was updated successfully, but these errors were encountered: