每个人都可以创建的自动化工作流以及Generator应用程序状态更新

在本文中,我将描述我完成的内部设置。 我已经完成了多项任务,包括构建,测试,部署,执行重复的计划任务。 为此,我使用了Java程序,Tomcat和Jenkins本地安装。 詹金斯·乔布斯(Jenkins Jobs)有一个不错的选择,可以通过以下几种方式触发和执行:

  • 通过CRON表达式–每天,每五分钟,每周一次或按计划在CRON表达式中输入的内容及时地启动作业。每当我将某些东西提交到在自动化设置中使用了一些代码的Git存储库中时,即会在挂接到git post update脚本后执行作业,并调用一个简单的cURL命令。执行作业后-可以以分层,链接的方式触发其他作业-附加条件仅在某些构建状态下才能进行。

部署任务–我执行的最基本的Jenkins任务是–提交内容后–执行构建脚本并产生一些结果– WAR文件,Zip文件,Jar,EXE或其他内容,以及–发布过程将结果上传到我的服务器。 从理论上讲,结果可以通过电子邮件发送,上传到某些云存储甚至是应用商店。 还没做到,但这是有可能的。

清除任务,备份作业–我有一份备份站点中数据库的作业。 保存最近的存档可以节省资源。 我还有一些任务需要清除一些特殊表-构建完成表-因此,在拥有新版本的构建工具之后,所有“从数据模型构建应用程序”任务都将再次执行。

CRON任务–备份任务是计划的作业。 而且,从数据模型构建应用程序的任务每隔“某个”分钟执行一次,即5,15或我认为合适的任何时间。

更新CRON可执行文件–数据模型构建器只是简单的Jar。 它们依赖于几个项目或模块,因此当我对依赖项进行更改时,在成功部署之后,将触发多个“更新Jar”任务。

GeneratorApp – This is one of my core projects. It does the creation of CRUD operations, data model oriented layers and user interfaces based on – my own or publicly defined data models. It has a deployment job, after the deployment Update the CRON executables and Clean Build tasks are chained and executed in a work flow.

一种ndroid GeneratorApp Builder – This is an app for creating android apps from data models. It Generates offline CRUD operations on the records with your definitions. I have an idea extending this builder to not only offline data models. Will see how it goes.

Flutter offline Web app GeneratorApp builder – Flutter is a cross platform framework that I’ve spend most of 2019 on. In year 2020 I am considering moving away from it. The advantage of fast building interfaces for all platforms – Desktop, Mobile, Web – with close to only one source code repository – is for early stage products. Whenever a project succeeds getting fame and some money – the time saving feature is cleared out and killed by the disadvantages – bigger app size, integration issues, and the fact that – there is no true escape from the native part. Whenever an app does something more that simple CRUD operations or a “Hello World” – a native package is required.

As a part of the evolution of my tool I have a next version of my Flutter online Web app builder. It is still in BETA. It creates crud operations with association of the data models around the a core data model – “The User/Profile/Registration”. In my own use of it I see more and more features needed, so the end result to require less and less actual code change or update. And all the new features require custom code beyond simple CRUD operations. Will see how things will go in 2020, but I’m definitely considering all kinds of directions.

from: https://dev.to//tomavelev/automation-workflow-that-everybody-could-create-plus-generator-app-status-update-2bcd

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
generator-lego 基于 gulp 的前端工作流 快速开始 提供以下2种获取方式: Clone the repo git clone git@github.com:duowan/generator-lego.git 在克隆目录执行 npm link 链接到全局模块的位置 在空目录执行 yo lego 初始化项目 npm npm install -g generator-lego 在空目录执行 yo lego 初始化项目 文件结构 generator-lego 初始化和执行任务涉及的文件结构: yourProj/ │ ├── package.json                // 项目依赖定义 ├── gulp.js                     // 配置任务 │ ├── node_modules                // `npm install` 拉取依赖包 │ ├── src/                        // 开发目录 │    ├── css/                    │    │   └── global.css         // 经过sass编译后的出口css文件 │    ├── sass/                  // sass源文件 │    ├── img/                   // 仅 Copy 不做操作 │    ├── js/                    // 仅 Copy 不做操作 │    └── index.html              │     └── dest/                       // 发布目录,执行 `gulp release` 生成     ├── css/                         │   └── global.css     ├── img/                        ├── js/                          └── index.html 环境准备 Node 环境:默认此步骤已完成  (Mac用户建议使用 Brew 安装 Node.js) Yeoman环境:npm install -g yo Gulp 环境:npm install -g gulp 任务说明 初始化项目 执行yo lego,初始化PC类的项目。 或者,执行yo lego:mobi,初始化移动类型的项目。 开发 gulp 创建一个链接,自动检测src文件夹下的静态文件,自动刷新。支持sass编译。 gulp -p 8080 同上,-p参数指定特定端口。 发布 gulp release 将静态文件压缩到 dest/。 标签:generator

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值