Triggering Jenkins Job with dynamically choosing the node using jenkins-cli.jar Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How to choose between Hudson and Jenkins?How to restart Jenkins manually?Jenkins - passing variables between jobs?How can a Jenkins user authentication details be “passed” to a script which uses Jenkins API to create jobs?Running Jenkins job simultaneously on all nodesHow do I clone a job in Jenkins?Jenkins - How to make a job trigger 3 jobs on 3 different node simultaneouslyJenkins parameter to trigger jobForce Jenkins to run triggered Job on same NodeUnable to trigger a Job in Nodes grouped by Label using Node and Label Parameter Plug-in

The Nth Gryphon Number

Putting class ranking in CV, but against dept guidelines

What does the writing on Poe's helmet say?

How does light 'choose' between wave and particle behaviour?

Tips to organize LaTeX presentations for a semester

Is there hard evidence that the grant peer review system performs significantly better than random?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

After Sam didn't return home in the end, were he and Al still friends?

Printing attributes of selection in ArcPy?

One-one communication

Is there public access to the Meteor Crater in Arizona?

What does 丫 mean? 丫是什么意思?

Why weren't discrete x86 CPUs ever used in game hardware?

Moving a wrapfig vertically to encroach partially on a subsection title

Was Kant an Intuitionist about mathematical objects?

How to change the tick of the color bar legend to black

What initially awakened the Balrog?

How do living politicians protect their readily obtainable signatures from misuse?

Can an iPhone 7 be made to function as a NFC Tag?

Why not send Voyager 3 and 4 following up the paths taken by Voyager 1 and 2 to re-transmit signals of later as they fly away from Earth?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Sally's older brother

A `coordinate` command ignored

Is it possible for an event A to be independent from event B, but not the other way around?



Triggering Jenkins Job with dynamically choosing the node using jenkins-cli.jar



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How to choose between Hudson and Jenkins?How to restart Jenkins manually?Jenkins - passing variables between jobs?How can a Jenkins user authentication details be “passed” to a script which uses Jenkins API to create jobs?Running Jenkins job simultaneously on all nodesHow do I clone a job in Jenkins?Jenkins - How to make a job trigger 3 jobs on 3 different node simultaneouslyJenkins parameter to trigger jobForce Jenkins to run triggered Job on same NodeUnable to trigger a Job in Nodes grouped by Label using Node and Label Parameter Plug-in



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Need to trigger a jenkins job using cli with node as argument
This can be accomplished using node and label parameter plugin using which we can pass nodename as a value to a defined parameter through cli. But is there any option to pass node name through commandline?










share|improve this question






























    0















    Need to trigger a jenkins job using cli with node as argument
    This can be accomplished using node and label parameter plugin using which we can pass nodename as a value to a defined parameter through cli. But is there any option to pass node name through commandline?










    share|improve this question


























      0












      0








      0








      Need to trigger a jenkins job using cli with node as argument
      This can be accomplished using node and label parameter plugin using which we can pass nodename as a value to a defined parameter through cli. But is there any option to pass node name through commandline?










      share|improve this question
















      Need to trigger a jenkins job using cli with node as argument
      This can be accomplished using node and label parameter plugin using which we can pass nodename as a value to a defined parameter through cli. But is there any option to pass node name through commandline?







      jenkins jenkins-cli






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 11:51









      Vadim Kotov

      4,91863549




      4,91863549










      asked Mar 22 at 11:48









      Hameed BashaHameed Basha

      36




      36






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The only way I found to trigger a Jenkins job by passing node as parameter is by installing node and label parameter plugin. As we can pass node as parameter we can trigger using command "java -jar jenkins-cli.jar -s http:jenkinsurl build jobname -p parameter_name= node_name"






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298949%2ftriggering-jenkins-job-with-dynamically-choosing-the-node-using-jenkins-cli-jar%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The only way I found to trigger a Jenkins job by passing node as parameter is by installing node and label parameter plugin. As we can pass node as parameter we can trigger using command "java -jar jenkins-cli.jar -s http:jenkinsurl build jobname -p parameter_name= node_name"






            share|improve this answer



























              0














              The only way I found to trigger a Jenkins job by passing node as parameter is by installing node and label parameter plugin. As we can pass node as parameter we can trigger using command "java -jar jenkins-cli.jar -s http:jenkinsurl build jobname -p parameter_name= node_name"






              share|improve this answer

























                0












                0








                0







                The only way I found to trigger a Jenkins job by passing node as parameter is by installing node and label parameter plugin. As we can pass node as parameter we can trigger using command "java -jar jenkins-cli.jar -s http:jenkinsurl build jobname -p parameter_name= node_name"






                share|improve this answer













                The only way I found to trigger a Jenkins job by passing node as parameter is by installing node and label parameter plugin. As we can pass node as parameter we can trigger using command "java -jar jenkins-cli.jar -s http:jenkinsurl build jobname -p parameter_name= node_name"







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 3 at 6:34









                Hameed BashaHameed Basha

                36




                36





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298949%2ftriggering-jenkins-job-with-dynamically-choosing-the-node-using-jenkins-cli-jar%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

                    밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

                    1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴