Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 146 Vote(s) - 3.69 Average
  • 1
  • 2
  • 3
  • 4
  • 5
java.io.IOException: Batch scripts can only be run on Windows nodes ::: With jenkins - MacOSX

#1
I'm new with Jenkins and i want to execute commands using a node, but I have the following error:
***java.io.IOException: Batch scripts can only be run on Windows nodes.***

My node is:

node ('master') {
git 'https://github.com/bryaneibon/SeleniumWithCucucumber.git'
bat label: '', script: 'mvn verify'
}

When I delete the bash command, everything works perfectly.

By trying with the command:

node ('master') {
git 'https://github.com/bryaneibon/SeleniumWithCucucumber.git'
bat 'mvn verify'
}

I have exactly the same error.

***The condensed log is as follows:***

No credentials specified
> /usr/local/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> /usr/local/bin/git config remote.origin.url

[To see links please register here]

# timeout=10
Fetching upstream changes from

[To see links please register here]

> /usr/local/bin/git --version # timeout=10
> /usr/local/bin/git fetch --tags --force --progress --
.
.
.
[Pipeline] bat
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.io.IOException: Batch scripts can only be run on Windows nodes
at org.jenkinsci.plugins.durabletask.WindowsBatchScript.doLaunch(WindowsBatchScript.java:58)
at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launchWithCookie(FileMonitoringTask.java:106)
at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:99)
at org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep$Execution.start(DurableTaskStep.java:317)
.
.
.
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through