Jenkins Jack - 本地化Jenkins調試工具


介紹

https://marketplace.visualstudio.com/items?itemName=tabeyti.jenkins-jack

https://github.com/tabeyti/jenkins-jack

      在VS CODE環境中, 將Jenkinsfile文件推送到Jenkins服務器上,並執行。

     獲取共享庫的step文檔。

     運行groovy腳本在不同的node機器上。

     將開發和調試環境集中到VSCODE中。 因為Jenkins界面不容易編寫代碼, 同時VS CODE環境不支持調試。

Jack into your remote Jenkins to execute Pipeline scripts, provide Pipeline step auto-completions, pull Shared Library step documenation, run console groovy scripts across multiple nodes, and more!

Honestly, not that much more.

 

功能

  • Pipeline Jack
    • Execute (with build paramaters)
      • Stream syntax highlighted output to output channel
    • Abort
    • Update
    • Shared Library reference docs
  • Script Console Jack
    • Execute
  • Node Jack
    • Set multiple nodes offline
    • Set multiple nodes online
    • Disconnect multiple nodes
  • Job Jack
    • Disable multiple jobs
    • Enable mulitiple jobs
    • Delete multiple jobs
  • Build Jack
    • Download a build log
    • Delete multiple builds
  • Supports switching between Jenkins hosts for running commands
  • Pipeline (GDSL) auto-completions for groovy files

 

配置

Jenkins Jack works by hooking into the user's running Jenkins instance via the Jenkins Remote API. Before you can use the plugin, you must fill in the extension settings to point to a Jenkins host(s) in settings.json:

"jenkins-jack.jenkins.connections": [
    {
        "name": "localhost",                            // "name" can be seen in the host selection command
        "uri": "http://localhost:8080",
        "username": "drapplesauce",


        "password": "217287g126721687162f76f387fdsy7",  // gen API token via <your-jenkins>/user/<user name>/configure
                                                        // E.g. http://127.0.0.1:8080/user/drapplesauce/configure

        "active": true                                  // Indicates the active jenkins host you're connected to.
                                                        // Also set via host selection command
    }

 

執行

Quick-use

 

ctrl+shift+j

Displays a list of all Jack sub-commands provided by the extension (jenkins-jack.jacks)

界面

 

 

 非常友好,增強用戶體驗,可以讓用戶在VS CODE中完成:

本地編寫

本地測試

本地入庫

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM