{"id":495,"date":"2017-01-08T08:37:19","date_gmt":"2017-01-08T08:37:19","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2017\/01\/08\/complete-guide-to-use-jenkins-cli-command-line\/"},"modified":"2021-02-27T09:49:38","modified_gmt":"2021-02-27T09:49:38","slug":"complete-guide-to-use-jenkins-cli-command-line","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/","title":{"rendered":"Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials"},"content":{"rendered":"<div><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2959 aligncenter\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png\" alt=\"jenkins-cli-command-line\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/div>\n<div>Complete guide to use Jenkins CLI \/ Command line?<\/div>\n<div><\/div>\n<div>Run Jenkins build from command is very simple in Linux system. If you are using using windows, gitbash is a recommended which has bash shell in built. You can use windows command line as well. Jenkins has support to command line client that allows you to access Jenkins from command line.<\/div>\n<div><\/div>\n<div><strong>To Trigger Jenkins build from command line some prerequisite are there<\/strong><\/div>\n<div><\/div>\n<div>Jenkins service is running.<\/div>\n<div>Enable security option under \u201cConfigure Global Security\u201d<\/div>\n<div><\/div>\n<div>Go to jenkins dashboard in Home page ( e.g http:\/\/localhost:8080\/ ) -&gt; Manage Jenkins<\/div>\n<div>-&gt; Configure Global Security -&gt; Click on \u201cEnable security\u201d checkbox<\/div>\n<div><\/div>\n<div>\n<p>You can also configure \u201cAccess Control\u201d and \u201cAuthorization\u201d option in Global Security page.<\/p>\n<div><strong>Download Jenkins-cli.jar<\/strong><\/div>\n<div>Download Jenkins-cli.jar from http:\/\/&lt;your_jenkins_server_url&gt;\/jnlpJars\/jenkins-cli.jar. (Here &lt;your_jenkins_server_url&gt; is your respective Jenkins server URL (development or staging))<\/div>\n<div>Go to http:\/\/&lt;your_jenkins_server_url&gt;\/cli and build your command by following the instructions there.<\/div>\n<\/div>\n<div><\/div>\n<div><strong>How to login to Jenkins using commands<\/strong><\/div>\n<div>If your Jenkins requires authentication, use &#8211;username and &#8211;password or &#8211;password-file options to specify the credentials. To avoid doing this for every command, you can also use the login CLI command once (with the same credentials parameters), and after that you may use other commands without specifying credentials.<\/div>\n<div><\/div>\n<div>Whenever the CLI tries to to connect to the Jenkins server, it offers the before mentioned SSH keys. When the user has those keys but don&#8217;t want use them to authenticate, preventing being prompted by the key&#8217;s password, it&#8217;s possible to use the -noKeyAuth argument. This way the CLI will never try to use the SSH keys available. failure to authenticate by itself does not constitute a fatal error. It will instead try to execute the command anyway, as the anonymous user.<\/div>\n<div><\/div>\n<div><\/div>\n<div><strong>Login Jenkins using username and Password<\/strong><\/div>\n<div>Jenkins allow us to trigger Jenkins build with any specific user, For that we have to pass username and password in command line.<\/div>\n<div>$ java -jar &#8220;\/tmp\/kitchen\/cache\/jenkins-cli.jar&#8221; -s http:\/\/localhost:8080 who-am-i &#8211;username jenkins &#8211;password foobar<\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/myjenkins help &#8211;username me &#8211;password mypassword<\/div>\n<div><\/div>\n<div><strong>Login Jenkins using public keys<\/strong><\/div>\n<div>Starting 1.419 (which will be out July 4th), Jenkins CLI supports authentication based on the SSH key pair. Just like CloudBees DEV@cloud (or GitHub, or other similar sites), you interactively login from the web UI, then associate your public keys with your user account. Then CLI will silently authenticates itself using your ~\/.ssh\/id_rsa, ~\/.ssh\/id_dsa, or ~\/.ssh\/identity.<\/div>\n<div>https:\/\/help.github.com\/articles\/generating-an-ssh-key\/<\/div>\n<div><\/div>\n<div><strong>Login Jenkins using private keys<\/strong><\/div>\n<div>You can also pass the priate key as follows<\/div>\n<div>To use the -i option the syntax is as follows:<\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/myjenkins help -i ~\/.ssh\/id_rsa<\/div>\n<div>$ java -jar jenkins-cli.jar [-s JENKINS_URL] [-i PRIVATE_KEY] command [options&#8230;] [arguments&#8230;]<\/div>\n<div>For compatibility reasons, unless you use the -i option,<\/div>\n<div><\/div>\n<div><strong>Login Jenkins using initialAdminPassword<\/strong><\/div>\n<div>try user &#8220;admin&#8221; and password from &#8220;Jenkins\\secrets\\initialAdminPassword&#8221;<\/div>\n<div>java -jar jenkins-cli.jar -s http:\/\/localhost:8080 who-am-i &#8211;username admin &#8211;password fe3f1e1624ea4be8873b7a35e28b24be<\/div>\n<div><\/div>\n<div><strong>Login Jenkins using passphrase<\/strong><\/div>\n<div>Go to http:\/\/jenkins-serer:8085\/user\/admin\/configure and set the passphrase in &#8220;SSH Public Keys&#8221; and use the same passphrase with jenkins commands.<\/div>\n<div><\/div>\n<div><strong>E.g 1 &#8211; Getting help<\/strong><\/div>\n<div>The list of the available commands depends on the server you are talking to. Visit https:\/\/jenkins.example.com\/cli or use &#8216;help&#8217; command to list them all:<\/div>\n<div>&gt; java -jar jenkins-cli.jar -s https:\/\/jenkins.example.com help [command]<\/div>\n<div><\/div>\n<div><strong>E.g 2 &#8211; Run Jenkins Build From Command Line<\/strong><\/div>\n<div>&gt; java -jar jenkins-cli.jar -s http:\/\/&lt;jenkins server&gt;\/ build build-name [-c] [-f] [-p] [-r N] [-s] [-v] [-w]<\/div>\n<div><\/div>\n<div>build-name : Name of the job to build<\/div>\n<div>-c \u00a0: Check for SCM changes before starting the build, and if there&#8217;s no change, exit without doing a build<\/div>\n<div>-f \u00a0: Follow the build progress. Like -s only interrupts are not passed through to the build.<\/div>\n<div>-p \u00a0: Specify the build parameters in the key=value format.<\/div>\n<div>-s \u00a0: Wait until the completion\/abortion of the command. Interrupts are passed through to the build.<\/div>\n<div>-v \u00a0: Prints out the console output of the build. Use with -s<\/div>\n<div>-w \u00a0: Wait until the start of the command<\/div>\n<div><\/div>\n<div>Example \u00a0&#8211; java -jar jenkins-cli.jar -s http:\/\/localhost:8080\/ build &#8216;my-project-build&#8217; &#8211;username roop &#8211;password roop<\/div>\n<div><\/div>\n<div><strong>E.g 3 &#8211; List all jobs under the view: tools<\/strong><\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/jenkins\/ list-jobs tools<\/div>\n<div><\/div>\n<div><strong>E.g 4 &#8211; Get the configuration of the job: template<\/strong><\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/jenkins\/ get-job template &gt; template.xml<\/div>\n<div><\/div>\n<div><strong>E.g 5 &#8211; Create a new job based on the configuration<\/strong><\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/jenkins\/ create-job new_job_name &lt; new_job_name.xml<\/div>\n<div><\/div>\n<div><strong>E.g 6 &#8211; Run groovy script<\/strong><\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/jenkins\/ groovy scripts\/add_job_to_view.groovy<\/div>\n<div>If there are any parameters in the script, just as:<\/div>\n<div>import jenkins.model.*<\/div>\n<div><\/div>\n<div>if (args.length != 2 ) {<\/div>\n<div>\u00a0 println &#8220;Error on arguments!&#8221;<\/div>\n<div>}<\/div>\n<div>def jobName \u00a0= args[0] ?: &#8216;a_job&#8217;<\/div>\n<div>def viewName = args[1] ?: &#8216;a_view&#8217;<\/div>\n<div><\/div>\n<div>println jobName + &#8216; &#8216; + viewName<\/div>\n<div><\/div>\n<div>def v = Jenkins.instance.getView(viewName)<\/div>\n<div>def i = Jenkins.instance.getItemByFullName(jobName)<\/div>\n<div>if (v &amp;&amp; i) {<\/div>\n<div>\u00a0 v.add(i)<\/div>\n<div>}<\/div>\n<div><\/div>\n<div>pass the parameters as:<\/div>\n<div><\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/jenkins\/ groovy scripts\/add_job_to_view.groovy JOB_NAME VIEM_NAME<\/div>\n<div><\/div>\n<div><strong>E.g 7 &#8211; Build a job<\/strong><\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/jenkins\/ build new_job_name<\/div>\n<div><\/div>\n<div><strong>E.g 8 &#8211; Diable a job<\/strong><\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/jenkins\/ disable-job new_job_name<\/div>\n<div><\/div>\n<div><strong>E.g 8 &#8211; Passing parameters when triggering a job build<\/strong><\/div>\n<div>Job parameters are a very handy concept. Perhaps you&#8217;ve only ever used Jenkins or another CI system to automatically run builds when a remote SCM\/git repo changes. You can also trigger builds manually from within Jenkins. And whilst you&#8217;re doing that, your job can prompt for parameters to the build.<\/div>\n<div><\/div>\n<div>For example, we have a job named similar to &#8220;Deploy XYZ App&#8221;. It has the git repo hardcoded in the job like a normal build, but when you press &#8220;Build&#8221;, it shows a list of options: string fields, drop-down lists, etc.<\/div>\n<div><\/div>\n<div>When the job runs, you can use these values anywhere within your job&#8217;s configuration. Its very cool.<\/div>\n<div><\/div>\n<div>But how to pass those same parameters via the CLI? You use the -p key=value flag for each parameter you want to pass.<\/div>\n<div><\/div>\n<div>So our finished product might look like:<\/div>\n<div>$ java -jar jenkins-cli.jar -s http:\/\/myjenkins build &#8216;Deploy XYZ App&#8217; -i ~\/.ssh\/id_rsa -s -v -p target_env=api.cloudfoundry.com -p branch=master<\/div>\n<div><\/div>\n<div><strong>Commons problems<\/strong><\/div>\n<div>Operation timed out<\/div>\n<div>$ java -jar jenkins-cli.jar -s YOUR_SERVER_URL help<\/div>\n<div>Exception in thread &#8220;main&#8221; java.net.ConnectException: Operation timed out<\/div>\n<div>at java.net.PlainSocketImpl.socketConnect(Native Method)<\/div>\n<div>at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)<\/div>\n<div>at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)<\/div>\n<div>at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)<\/div>\n<div>at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)<\/div>\n<div>at java.net.Socket.connect(Socket.java:529)<\/div>\n<div>at java.net.Socket.connect(Socket.java:478)<\/div>\n<div>at java.net.Socket.&lt;init&gt;(Socket.java:375)<\/div>\n<div>at java.net.Socket.&lt;init&gt;(Socket.java:189)<\/div>\n<div>at hudson.cli.CLI.&lt;init&gt;(CLI.java:97)<\/div>\n<div>at hudson.cli.CLI.&lt;init&gt;(CLI.java:82)<\/div>\n<div>at hudson.cli.CLI._main(CLI.java:250)<\/div>\n<div>at hudson.cli.CLI.main(CLI.java:199)<\/div>\n<div>Check that the JNLP port is opened if you are using a firewall on your server. You can configure its value in Jenkins configuration. By default it is set to use a random port.<\/div>\n<div><\/div>\n<div>java.io.IOException: No X-Jenkins-CLI2-Port<\/div>\n<div>java.io.IOException: No X-Jenkins-CLI2-Port among [X-Jenkins, null, Server, X-Content-Type-Options, Connection, X-You-Are-In-Group, X-Hudson, X-Permission-Implied-By, Date, X-Jenkins-Session, X-You-Are-Authenticated-As, X-Required-Permission, Set-Cookie, Expires, Content-Length, Content-Type]<\/div>\n<div>at hudson.cli.CLI.getCliTcpPort(CLI.java:284)<\/div>\n<div>at hudson.cli.CLI.&lt;init&gt;(CLI.java:128)<\/div>\n<div>at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72)<\/div>\n<div>at hudson.cli.CLI._main(CLI.java:473)<\/div>\n<div>at hudson.cli.CLI.main(CLI.java:384)<\/div>\n<div>Suppressed: java.io.IOException: Server returned HTTP response code: 403 for URL: <a href=\"http:\/\/citest.gce.px\/cli\" target=\"_blank\" rel=\"noopener\">http:\/\/citest.gce.px\/cli<\/a><\/div>\n<div>at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)<\/div>\n<div>at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)<\/div>\n<div>at hudson.cli.FullDuplexHttpStream.&lt;init&gt;(FullDuplexHttpStream.java:78)<\/div>\n<div>at hudson.cli.CLI.connectViaHttp(CLI.java:152)<\/div>\n<div>at hudson.cli.CLI.&lt;init&gt;(CLI.java:132)<\/div>\n<div>&#8230; 3 more<\/div>\n<div>Solution: Go to Manage Jenkins -&gt; Configure Global Security -&gt; &#8220;TCP port for JNLP agents&#8221;: choose fixed or random<\/div>\n<div><\/div>\n<div><strong>Reference<\/strong><\/div>\n<div><a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Jenkins+CLI\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Jenkins+CLI<\/a><\/div>\n<div><a href=\"http:\/\/lifuzu.com\/blog\/2014\/04\/24\/playing-with-jenkins-create-job\/\" target=\"_blank\" rel=\"noopener\">http:\/\/lifuzu.com\/blog\/2014\/04\/24\/playing-with-jenkins-create-job\/<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Complete guide to use Jenkins CLI \/ Command line? Run Jenkins build from command is very simple in Linux system. [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2959,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42,1],"tags":[829,823,824,145,825,826,827,828,798],"class_list":["post-495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jenkins","category-uncategorized","tag-cli","tag-cli-command-line","tag-command-line","tag-jenkins","tag-jenkins-cli-command-line","tag-jenkins-command-line","tag-jenkins-command-line-guide","tag-jenkins-command-line-tutorials","tag-jenkins-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Complete guide to use Jenkins CLI \/ Command line? Run Jenkins build from command is very simple in Linux system. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-08T08:37:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:49:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Complete guide to use Jenkins CLI \\\/ Command line | Jenkins Tutorials\",\"datePublished\":\"2017-01-08T08:37:19+00:00\",\"dateModified\":\"2021-02-27T09:49:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/\"},\"wordCount\":1445,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/complete-guide-to-use-jenki.png\",\"keywords\":[\"CLI\",\"CLI \\\/ Command line\",\"Command line\",\"Jenkins\",\"Jenkins CLI \\\/ Command line\",\"Jenkins Command line\",\"Jenkins Command line Guide\",\"Jenkins Command line Tutorials\",\"Jenkins Tutorials\"],\"articleSection\":[\"Jenkins\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/\",\"name\":\"Complete guide to use Jenkins CLI \\\/ Command line | Jenkins Tutorials - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/complete-guide-to-use-jenki.png\",\"datePublished\":\"2017-01-08T08:37:19+00:00\",\"dateModified\":\"2021-02-27T09:49:38+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/complete-guide-to-use-jenki.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/complete-guide-to-use-jenki.png\",\"width\":600,\"height\":400,\"caption\":\"jenkins-cli-command-line\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/complete-guide-to-use-jenkins-cli-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Complete guide to use Jenkins CLI \\\/ Command line | Jenkins Tutorials\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials - scmGalaxy","og_description":"Complete guide to use Jenkins CLI \/ Command line? Run Jenkins build from command is very simple in Linux system. [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/","og_site_name":"scmGalaxy","article_published_time":"2017-01-08T08:37:19+00:00","article_modified_time":"2021-02-27T09:49:38+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials","datePublished":"2017-01-08T08:37:19+00:00","dateModified":"2021-02-27T09:49:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/"},"wordCount":1445,"commentCount":1,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png","keywords":["CLI","CLI \/ Command line","Command line","Jenkins","Jenkins CLI \/ Command line","Jenkins Command line","Jenkins Command line Guide","Jenkins Command line Tutorials","Jenkins Tutorials"],"articleSection":["Jenkins"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/","name":"Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png","datePublished":"2017-01-08T08:37:19+00:00","dateModified":"2021-02-27T09:49:38+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/01\/complete-guide-to-use-jenki.png","width":600,"height":400,"caption":"jenkins-cli-command-line"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/complete-guide-to-use-jenkins-cli-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Complete guide to use Jenkins CLI \/ Command line | Jenkins Tutorials"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":2961,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/495\/revisions\/2961"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/2959"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}