Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

seanly/asl-steps

Repository files navigation

ASL (Ant Script Library)

基于Ant进行包装,开发一套可以复用的构建脚本。

测试命令

./run.sh step sample -Darg1=world

命令说明: sample是一个step模块,可以实现各种功能的step,比如maven, gradle, pkg, archive, ansible等

使用方式

日常构建发布可以使用这个库,比如要完成代码的编译,打包,归档,和部署

./run.sh step maven -Droot.pom=pom.xml -Dgoals='clean package' -Doptions='-Dmaven.test.skip=true' -Dsettings.id=ci -Dmaven.repo.local=/home/jenkins/.mvnrepo

./run.sh step package -Dapp.id=hello -Dapp.version=${PIPELINE_VERSION} -Dfileset.dir=${WORKSPACE}/dist -Dfileset.include='**/*'

./run.sh step archive -Dapp.env=${PIPELINE_ENV} -Dgroup.id=${APP_GROUP} -Dapp.id=hello -Dapp.version=${PIPELINE_VERSION} -Darchive.provider=minio -Dminio.xxxx=xxx

./run.sh step ansible -Dansible.user=${ANSIBLE_SSH_USER} -Dansible.keyfile=${ANSIBLE_SSH_KEYFILE} -Dinventory.hosts='ip,' -Dansible.options='-v -C' -Dplaybook.file=deploy.yml

通过yaml描述流水线方式执行

./run.sh pipeline ant.yml -Ddebug=true

#如何创建一个step

./run.sh step genstep -Dws.dir=tmp -Dout.step.name=hello

ant文档

http://ant.apache.org/manual/index.html

About

ASL(Ant Script Library),基于Ant的扩展框架。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published