I have an ANT task where it calls a SASS cmd.
This works properly in eclipse, but when I try to call that Ant task through Jenkins, it says "It could not find sass...(Gem::LoadError)"
I have the jenkins process running as 'root'.
Related
I am trying to run testNG tests, cucumber scenarios using Gradle.this is my build script
while executing command "grdale test" from Jenkins pipeline ,getting an error-error
I suspect with WebDriver is not getting invoked is the issue and finding solution.
https://docs.gradle.org/current/userguide/command_line_interface.html#_executing_multiple_tasks
I know gradle allows to execute multi-tasks in order.
In my case, gradle stopped when it finishes the first tasks
my command is like:
gradle taskA taskB taksC
It just skip everything after taskA.
My gradle is 4.1
I have a groovy script with ant commands on it. The script is successfully run in my local machine but when I tried it with Jenkins the groovy script always fail. Jenkins always return error that "ant can't create task or type p4Change". I already added Apache ant support in the global configuration. How do I configure ant to successfully run the groovy script I have. Any idea. Thanks.
Sample code snippets:
I have execute.groovy file with ant commands
ant=new AntBuilder()
def checkChanges {
ant.p4change(description:"Checking",port:'perforce:1666',user:optional,view:"'${workspace}'...")}
And I created a batch file that will run the execute.groovy file
call groovy execute.groovy project bopolz18 -c bopolz18.Workspace 150718
In my machine this works well but in Jenkins when I execute the batch command it fails giving the error mention above.
I'm trying to run my tests in Jenkins with Gradle. I have a gradle task called 'test' and I specify which tests to run with --tests
Using the Jenkins Gradle plugin, I've specified the Switches (--tests ) and Tasks ('test') but when the build actually runs it puts the --tests stuff before the tasks which doesn't work at all. I need the task to come first on the commandline before the switches otherwise it doesn't work. What can I do here?
If you add --tests to Tasks in the right order it should work.
I.e. try adding
test --tests <test include expression>
as Tasks.
Switches is just for convenience - in the end everything will end up as the argument list of the gradle executable.
I have a jenkins build with three ant tasks. If the first ant task fails, jenkins continues with the next ant task. How can I get jenkins to fail the build and stop when an ant task fails?
I'm assuming you're missing a "failonerror=true" attribute within your ant task. A lot of sub tasks default this value to false. (e.g. Java Task for example).
Could you post your entire ant script if that's not the case?