npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jks-cli

v0.0.2

Published

用命令行的方式打开Jenkins。

Downloads

5

Readme

jks-cli

用命令行的方式打开Jenkins。


typescript npm npm

安装

$ npm install --global jks-cli

快速开始

如果您没有安装Nodejs,请先安装。

# 帮助文档
$ jks-cli --help

# 设置Jenkins用户信息、快捷方式等
$ jks-cli set

# 构建项目,其中env为参数化构建参数key,test为参数化构建参数value,jenkins-job为jenkins项目名,需要根据实际情况替换。
$ jks-cli build --job env,test,jenkins-job

高级用法

同时构建多个项目

# 如果您需要同时构建多个项目
$ jks-cli build --job env,test,jenkins-job-1 --job env,uat,jenkins-job-2

不带参数构建

$ jks-cli build --job ,,jenkins-job

多个构建参数

# 如果您的项目需要多个参数,注意同一项目的不同参数的项目名需要一致
$ jks-cli build --job env,test,jenkins-job-1 --job branch,release,jenkins-job-1 --job env,uat,jenkins-job-2 --job branch,uat,jenkins-job-2

自定义分隔符

# 如果您不想使用“,”进行分割
$ jks-cli build --symbol @ --job env@test@jenkins-job

使用快捷方式快速构建

# 使用交互的方式进行快捷构建
$ jks-cli run

指定快捷方式

# 携带quick参数指定快捷方式,其中quick-title替换成对应的快捷方式标题。
$ jks-cli run --quick quick-title

取消构建任务

# 写在job参数,其中4635为构建队列中的编号buildNumber,jenkins-job为jenkins项目名,根据实际情况替换
$ jks-cli stop --job 4635,jenkins-job

取消多个构建任务

$ jks-cli stop --job 4635,jenkins-job-1 --job 3347,jenkins-job-2

效果展示

# 设置
$ jks-cli set
$ jks-cli build

常见问题

功能进展

  • [x] 构建项目功能
  • [x] 构建完成通知功能
  • [x] 快捷方式功能
  • [x] 导入导出设置功能
  • [ ] Jenkins控制台输出、日志查看等功能