Run an XML File located on Cloud
-
Hay,
i just setup the TriggerCMD on one of my machine and i jst want to know is there ny way to run an xml file which will trigger set of JAVA classes, my requirement here is if the file is in my local machine i can run that using a .BAT file, but if it hosted on GITHUB and execute from JENKINS, then it comes to the problem.
Can you please assists me on this how can i achieve,1) Running an XML on local machine is workig fine with the .bat file
2) Now, the XML file hosted in GitHub and execution is linked to Jenkins, now i
need to run that Jenkins Job with Alexa
3) Can you please help me on thisOne of my main concern here is JENKINS or any other Cloud is Authentication based (Username and Password), so can Alexa will execute that and how can we achieve that using TriggerCMD
Thanks,
Gouri -
@muvvala-g, I use Jenkins too, so I can put together an example if you want, but here's some quick research I did so far:
https://jenkins.io/doc/book/managing/cli/#common-commands
It looks like Jenkins gives you a command-line tool that can run jobs.
EDIT: I tried it out and it works pretty well. My command looks like this:
java -jar jenkins-cli.jar -s http://localhost:8080 -http -auth admin:PASSWORD build MyJob -v -sAlso, I downloaded the jenkins-cli.jar from my own Jenkins server with this command:
wget http://localhost:8080/jnlpJars/jenkins-cli.jarDoes that accomplish what you're trying to do?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login