2.0.2 • Published 4 years ago

rf-auto-jenkins-plugin v2.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

模板生成命令

全局安装

npm i rf-auto-jenkins-plugin -g

如需下载特定版本 加@1.8.5(版本号)

npm i rf-auto-jenkins-plugin@1.8.5 -g

    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": "hf-cli --project rfhouse-html-dev --gitBranch */dev_branch setup dev",
	"test": "hf-cli  --project rfhouse-html-test-bytag --gitBranch */dev_branch setup test",
    "build": "hf-cli --project rfhouse-html-bytag --branch xx setup build",
    "test:tag": "hf-cli --project rfhouse-html-test-bytag --autotag true setup test",
    "push": "hf-cli push -p true",
    "auto-tag": "hf-cli git-tag",
    "auto-replace": "hf-cli auto-replace-file",
    "auto-serve": "hf-cli auto-serve -p 8007"

   逻辑解析:
   -> 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 将你的测试分支构建去服务器

自动生成模板

hf-cli create 即可运行生成文件交互式命令

模板类型

vue、小程序page、小程序component 创建文件

注意

  • 默认不传为 dev_branch
  • 正式环境的 jenkis 还是手动或者传入分支进行构建 xx 替换为生成分支/tag
  • 之前的 jenkis 直接点击构建不影响
  • 目前生成构建暂不支持默认分支构建 如有需要请慎重传入 tag/分支构建
  • 无法使用 git 命令的同学 注意查看配置 git 命令 http://note.youdao.com/s/SUkvR3kJ
  • 配置 jenkis 环境项目http://note.youdao.com/s/Gl79RraM

运行事项

    下载完毕之后 在终端输入
    ---> bash 就可以切换 gitbash环境了
    --->输入cmd 就可以切换 cmd默认命令
2.0.2

4 years ago

2.0.1

4 years ago

1.9.9

4 years ago

1.9.8

4 years ago

1.9.7

4 years ago

1.9.1

4 years ago

2.0.0

4 years ago

1.9.6

4 years ago

1.9.5

4 years ago

1.9.4

4 years ago

1.9.3

4 years ago

1.8.8

4 years ago

1.8.7

4 years ago

1.8.6

4 years ago

1.8.5

4 years ago

1.8.3

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.9

4 years ago

1.7.8

4 years ago

1.7.7

4 years ago

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.3

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.9

4 years ago

1.6.8

4 years ago

1.6.7

4 years ago

1.6.6

4 years ago

1.6.5

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago