TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Run an XML File located on Cloud

    Instructions
    b b
    2
    2
    863
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Muvvala G
      last edited by Muvvala G

      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 this

      One 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

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Muvvala G
        last edited by Russ

        @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 -s
        

        Also, I downloaded the jenkins-cli.jar from my own Jenkins server with this command:

        wget http://localhost:8080/jnlpJars/jenkins-cli.jar
        

        Does that accomplish what you're trying to do?

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • First post
          Last post