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

    Run an XML File located on Cloud

    Scheduled Pinned Locked Moved Instructions
    b b
    2 Posts 2 Posters 1.7k Views 1 Watching
    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 Offline
      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 Offline
        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

        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
        • First post
          Last post