# rfhouse-html

> > 手动触发jeknis构建

Latest version **1.1.0** (published 2020-07-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install rfhouse-html
pnpm add rfhouse-html
yarn add rfhouse-html
bun add rfhouse-html
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-07-30 |
| First published | 2020-07-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | lizhang |

## Links

- npm: https://www.npmjs.com/package/rfhouse-html
- Repository: https://github.com/zhangli254804018/jenkins-plugin-client
- Homepage: https://github.com/zhangli254804018/jenkins-plugin-client#readme
- Issues: https://github.com/zhangli254804018/jenkins-plugin-client/issues
- npm.io page: https://npm.io/package/rfhouse-html

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.88.2
- [commander](https://npm.io/package/commander.md) ^6.0.0

## Recent versions

- 1.1.0 (latest) — 2020-07-30
- 1.0.0 — 2020-07-30

## README

> 手动触发jeknis构建

- 1.yarn install 下载依赖包
- 2.yarn dev 触发jenkis构建开发环境dev_branch分支
- 3.yarn test 触发jenkis构建测试环境dev_branch分支
- 4.yarn test:tag 触发jenkis构建测试环境tag分支分支（优势就是可以在当前分支自动打tag进行构建不需要合并代码）

```
    Usage:node jenkins [options] [command]

    这是一个命令行工具

    Options:
    -V, --version                  output the version number
    -project,--project [name]      build you develop project name
    -token,--apitoken [apitoken]   send your api token
    -author,--author [name]        send your author
    -trigger,--triggerName [name]  send your triggerName
    -branch,--gitBranch [name]     send your gitBranch/tags
    -h, --help                     display help for command

    Commands:
    setup [env]                    run setup commands for all envs
    help [command]                 display help for command

    Examples:
    $ custom-help --help
    $ custom-help -h
    
   代码执行模块：
    "dev": "node jenkins --project rfhouse-html-dev --gitBranch */dev_branch setup dev",
    "test": "node jenkins --project rfhouse-html-test-bytag --gitBranch */dev_branch setup test",
    "build": "node jenkins --project rfhouse-html-bytag --branch xx setup build",
    "test:tag": "node jenkins --project rfhouse-html-test-bytag --autotag true setup test"

   逻辑解析：
   -> node 执行 jenkins.js 
   -> 然后传入参数 
    --project yourproject(ex:rfhouse-html-test-bytag) 
    --gitBranch yourbranch/yourtagname(ex:*/dev_branch||refs/tags/d20207281029) 
    --autotag true (ex:自动创建tag refs/tags/d20207281029) 
   -> npm run test 将你的测试分支构建去服务器

```

> 注意

* 默认不传为dev_branch 
* 正式环境的jenkis还是手动或者传入分支进行构建 xx替换为生成分支/tag
* 之前的jenkis直接点击构建不影响 
* 目前生成构建暂不支持默认分支构建 如有需要请慎重传入tag/分支构建
* 无法使用git命令的同学 注意查看配置git命令 [http://note.youdao.com/s/SUkvR3kJ](http://note.youdao.com/s/SUkvR3kJ)
* 配置jenkis环境项目[http://note.youdao.com/s/Gl79RraM](http://note.youdao.com/s/Gl79RraM)

---
_Source: https://npm.io/package/rfhouse-html · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
