1 Star 0 Fork 153

yg178 / auto_build_shell

forked from 芝麻谷 / auto_build_shell 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
配置说明.md 3.05 KB
一键复制 编辑 原始数据 按行查看 历史
芝麻谷 提交于 2017-05-07 01:01 . [Summary]

conf.ini配置参数

修改conf.ini的位置和名称

  • 如果你因为某种需要修改conf.ini的路径或者名称,请在atb.sh中检索这段代码,并修改它

        #配置文件路径名称
        conf_filename=${ATB_HOME}/conf/conf.ini

请注意:以下配置中不要给“=”左右的字符串加引号,可能会引起不必要的错误

[ remote-server ]

  • 远程服务器路径

    config_remote_server_paths=A B C D

  • 远程服务器用户

    config_remote_users=A B C D

  • 远程服务器ip

    config_remote_ips=A B C D

  • 远程服务器端口 一般都是22

    config_remote_ports=A B C D

  • 远程服务器密码 如果你对各个环境密码倒背如流,出于安全考虑你可以不设置,这里设置的目的是在终端打出密码,方便在输密码时拷贝。如果你设置了ssh免密码登录就更好了,完全不需要设置。

    config_remote_pwds=A B C D

  • maven打包用的远程profiles

    config_remote_profiles=A B C D

  • 远程server_flags 用于区分远程服务器的标识,必须设置为数字,一般设置为ip地址的最后一个点后的数字

    config_remote_server_flags=A B C D

    以上参数必须保持一致 因为数组里的元素对应了不同环境的一个属性,属性之间用空格分开

  • 远程重启shell脚本目录(一定是上面用户能访问的目录,否则会提示没有权限)

    config_remote_shell_dir=/home/product

  • 服务器上最大备份文件数

    config_remote_max_backup_file_num=10

  • 备份功能开关 [ on | off ]

    config_remote_backup_switch=on

[ local-server ]

  • 本地tomcat根目录

    config_local_server_path=/home/houjinxin/document/apache-tomcat-8.0.38

[ project ]

  • 项目远程build路径 工程的父级目录(本地和远程发布不使用统一路径)

    config_remote_project_basepath=/home/houjinxin/document/build

  • 项目本地build路径 工程的父级目录

    config_local_project_basepath=/home/houjinxin/document/trunk

  • 项目名称

    config_project_name=TaskCenter

  • war包所在的maven子模块,只支持一个war包的工程 为空时代表在父级目录下的target中存在war包

    config_war_sub_project_name=

  • war包名

    config_war_name=TaskCenter.war

  • 本地profile maven的profile参数 没有可以为空

    config_local_profile=dev

[ command ]

  • svn或git等检出代码的命令,不需要再改atb.sh

    config_checkout_command=git s;git pull;git sp

[ svn-authentication ]

  • svn账号 使用svn检出代码时使用

    config_svn_username=houjinxin

  • svn密码

    config_svn_password=SHuGIsLkukk

[ maven ]

  • maven本地路径 若此处没有设置,则使用环境变量中配置的maven

    config_maven_home=

[ repository ]

  • 项目git或svn地址

    config_repository_url=svn://192.168.50.27/micro_crawler/Develop/projects/trunk/TaskCenter

Shell
1
https://gitee.com/hwsyy/auto_build_shell.git
git@gitee.com:hwsyy/auto_build_shell.git
hwsyy
auto_build_shell
auto_build_shell
master

搜索帮助