Jenkins Powershell 输出 [英] Jenkins Powershell Output

查看:84
本文介绍了Jenkins Powershell 输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Jenkins Powershell 插件.

这可能吗?

我的目标是以某种方式构建最新的标记,而 powershell 脚本旨在实现这一点,输出到文本文件无济于事,并且无法使用环境变量,因为该过程似乎很不幸地分叉

My goal is to build the latest tag somehow and the powershell script was meant to achieve that, outputing to a text file would not help and environment variables can't be used because the process is seemingly forked unfortunately

推荐答案

除了 EnvInject 之外,另一种在构建步骤之间共享数据的常用方法是将结果存储在位于作业工作区的文件中.

Besides EnvInject the another common approach for sharing data between build steps is to store results in files located at job workspace.

这个想法是完全跳过使用环境变量,只写/读文件.

The idea is to skip using environment variables altogether and just write/read files.

这篇关于Jenkins Powershell 输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆