Open echo557 opened 1 year ago
@echo557 Sorry for the late response. Based on your example, you're aiming to include a task or a system property. Just add the TestParameter in the string of tasks:
buildInfo = rtGradle.run rootDir: "gradle-examples/gradle-example-ci-server/", buildFile: 'build.gradle', tasks: 'artifactoryPublish TestParameter'
How can we help?
How to add parameters for build.gradle using pipeline? In pipeline file set as: buildInfo = rtGradle.run rootDir: "gradle-examples/gradle-example-ci-server/", buildFile: 'build.gradle', tasks: 'artifactoryPublish'
And the logs from console as: $ /var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/gradle/bin/gradle --init-script /var/jenkins_home/workspace/test_jfrog@tmp/artifactory/init-artifactory17265482584302758238gradle artifactoryPublish -p gradle-examples/gradle-example-ci-server/ -b build.gradle
I wander to know how I add parameters like this:
$ /var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/gradle/bin/gradle --init-script /var/jenkins_home/workspace/test_jfrog@tmp/artifactory/init-artifactory17265482584302758238gradle artifactoryPublish -p gradle-examples/gradle-example-ci-server/ -b build.gradle TestParameter