CCS6 postbuild 设置

Is there some way of creating a project in Eclipse, without any source files, that when built runs a single BAT file (either directly or via a Makefile, either would be all right)?

The goal is to split an existing project with a post-build step (a BAT-file that performs deployment) into two projects, one for building and one for running the deployment BAT-file.

share improve this question
 

2 Answers

up vote 1 down vote accepted

Take a look at creating an External Tool Launch Configuration via Run->External Tools One type is Program, you can use that to run bat files.

share improve this answer
 

I know that this is an old question maybe the answer was irrelevant back then. Currently in Eclipse if you right click to your projects and go to:

Properties->C/C++ Build->Settings

The second tab is Build Steps. You can add both pre and post build steps.

I have found that sometimes the eclipse internal shell is a bit awful. So if you want to run it in Windows shell you can prepend cmd /c and add caret (^) as an escape character e.g. for a_file_with_(escaped)_chars.bat

cmd /c "a_file_with_^(escaped^)_chars.bat"





  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Jenkins是一个开源的自动化服务器,可以用于持续集成和持续交付。Pipeline是Jenkins的一种插件,用于实现将软件交付过程中的各个环节自动化并串联起来。而groovy-postbuild则是Pipeline插件中的一个功能,用于在构建完成后执行一些Groovy脚本。 groovy-postbuild功能允许我们根据构建的结果来执行不同的操作。例如,我们可以通过这个功能发送邮件通知构建的结果,或者根据构建的状态来触发其他的流程。在Jenkins Pipeline中使用groovy-postbuild可以通过以下步骤实现: 首先,在Pipeline脚本中引入groovy-postbuild插件。可以在Jenkins的全局库中配置插件,或者在Pipeline脚本中使用`@Library`指令引用插件。 接下来,在构建的某个阶段(如构建完成后)使用groovy-postbuild功能。可以通过在Pipeline脚本中使用`post`块来定义要执行的脚本。在`post`块中可以使用`always`、`success`、`unstable`、`failure`、`changed`等关键字来指定在不同的构建结果下要执行的脚本。 最后,在groovy-postbuild脚本中编写具体的Groovy脚本。这些脚本可以使用Jenkins提供的API来获取构建的信息,执行特定的操作或报告构建的结果。 通过使用jenkins pipeline groovy-postbuild功能,我们可以更加灵活地控制和定制构建后的操作。无论是发送通知、触发其他流程还是生成报告,都可以通过groovy-postbuild功能来实现。这个功能为我们提供了更多的灵活性和定制性,使我们能够更好地适应不同的构建需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值