腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
通过
powershell
在
jenkins
中使用AnsiColor
powershell
、
jenkins
、
jenkins-plugins
、
ansi-colors
知道如何用
powershell
在
Jenkins
上给我的
输出
着色吗?我已经在我的
Jenkins
上安装了AnsiColor插件,并且我已经将工作设置为使用AnsiColor。唯一的问题是如何让我的
powershell
输出
Jenkins
上的颜色。
浏览 1
提问于2016-09-02
得票数 5
回答已采纳
1
回答
在Windows上从
Jenkins
运行时,Get-DscResource不返回完整列表
powershell
、
jenkins
、
windows-server-2016
、
dsc
我有一个Windows 2016
Jenkins
构建框。我想在詹金斯的工作中运行一些
powershell
。xhyper-vD:\
Jenkins
\workspace\build-windows-server-2016-core>
powershell
-command Get-DscResource如果我将RDP放到框上并以
jenkins
服务帐户登录,然后打开一个cmd.exe窗口并运行
powershell
-command Get-DscRes
浏览 0
提问于2017-01-02
得票数 0
回答已采纳
1
回答
Jenkins
可以运行通过
PowerShell
脚本调用的可执行文件吗?
powershell
、
jenkins
我必须使用
Jenkins
作为框架在Windows8服务器上安装一个程序。我编写了一个
PowerShell
脚本,它在通过
PowerShell
控制台运行时可以运行和安装可执行文件。当我通过
Jenkins
运行相同的脚本时,不会发生这种情况。可以通过
PowerShell
脚本在
Jenkins
上运行.exe吗?
浏览 1
提问于2015-02-24
得票数 0
1
回答
Jenkins
-
powershell
输出
powershell
、
jenkins-pipeline
我有一个调用
Powershell
脚本的
jenkins
管道步骤: stage('Run script') { script {
powershell
问题是,当我直接在从PC上从
Powershell
会话运行Invoke-Script时,我会在
Powershell
控制台中看到所有
输出
。但是,当我在
Jenkins
中运行相同的代码时,我在
Jenkins
控制台中看不到该
输出
浏览 17
提问于2020-10-20
得票数 0
回答已采纳
1
回答
如何将BUILD_USER从詹金斯传递给
PowerShell
powershell
、
jenkins
我很难把BUILD_USER从詹金斯传给
PowerShell
。我正在使用
Jenkins
中的构建用户Vars插件。我可以很好地
输出
"${BUILD_USER}",但是当我试图将它传递给
PowerShell
时,我什么也得不到。#!script { echo "(
Jenkins<
浏览 0
提问于2019-08-20
得票数 1
回答已采纳
0
回答
Jenkins
管道,
PowerShell
脚本挂起
powershell
、
jenkins-pipeline
我想使用
Powershell
命令从
Jenkins
Pipeline运行
powershell
文件。应该很简单,对吧?node() stage ('Hello World') {Started by user AdministratorRunning on master in C:\
浏览 5
提问于2017-11-28
得票数 2
1
回答
从
Jenkins
PowerShell
构建步骤中调用的
PowerShell
脚本无限期挂起
powershell
、
jenkins
、
freeze
我有一个
Jenkins
(1.493)项目,它使用
Jenkins
PowerShell
构建步骤来执行
PowerShell
脚本。在该脚本中,我想调用另一个存储在文件中的脚本。我现在已将其简化如下:& "\\stemmer.local\sidevelopment\cvdev\devbase\
jenkins
\
PowerShell
每当这个
Jenkins
项目执行时,<e
浏览 6
提问于2012-12-19
得票数 2
回答已采纳
4
回答
Jenkins
Powershell
输出
powershell
、
jenkins
我想使用捕获作业中其他地方使用的一些变量的
输出
。 这个是可能的吗?我的目标是以某种方式构建最新的标记,而
powershell
脚本就是为了实现这一点,
输出
到文本文件将不会有帮助,环境变量也无法使用,因为进程似乎是分叉的。
浏览 6
提问于2016-10-06
得票数 4
回答已采纳
1
回答
Jenkins
调用
powershell
脚本,但不执行
powershell
、
jenkins
有没有一种方法让
Jenkins
调用
powershell
脚本而不等待
输出
就停止了呢?我不想让它在詹金斯的背景下运行。
Jenkins
只用于传递表单参数。原因:
Jenkins
在Internet对象中不能很好地工作,因为脚本在直接调用或任务调度程序时运行良好,但是在几个步骤中使用
Jenkins
失败。尝试了多次工作,但失败了。因此,解决方案是,我只使用
Jenkins
调用脚本,以便它只在
powershell
的上下文中运行。
Jenkins
只用于传递
浏览 9
提问于2020-01-21
得票数 0
1
回答
Jenkins
pipeline
powershell
控制台
输出
中的格式错误
powershell
、
jenkins
我在
Jenkins
2.77 (Windows机器)中使用
powershell
pipeline得到奇怪的
输出
stage('From sharedlibrary') {}[QA_SharedLibrary] Running
PowerShell
scrip
浏览 0
提问于2017-09-08
得票数 0
1
回答
处理
Jenkins
Groovy脚本异常
c#
、
jenkins
、
groovy
我使用ps来拿回值,并在一个阶段内获得这个值: pcode = (
powershell
(returnStdout: true, script: 'return以上运行结果:tester arg = hello script returned exit codeicode = (
powershell
(returnStdout: true, script: 'return I
浏览 2
提问于2017-11-30
得票数 1
回答已采纳
3
回答
从
powershell
返回值到管道内的管道
powershell
、
jenkins
、
jenkins-pipeline
、
return-value
、
invoke-sqlcmd
在
Jenkins
Pipeline中,我想从
powershell
返回一个值到管道,但我不知道如何返回 示例: pipeline { stagesparameters([ ])
浏览 47
提问于2019-01-09
得票数 2
回答已采纳
1
回答
"
Powershell
“
Jenkins
步骤的控制台
输出
出现延迟
powershell
、
output
、
jenkins-pipeline
我有一个
Jenkins
管道。其中一个步骤是
powershell
,它执行
powershell
脚本。该脚本包含几个应该通知脚本执行情况的Echo语句。我希望Echo发出的文本会立即出现在
Jenkins
作业的控制台中。实际上,
Jenkins
的任务直到最近才开始使用windows bat,然后所
浏览 5
提问于2018-08-13
得票数 0
1
回答
带有Docker
PowerShell
镜像的getting文件被挂起
powershell
、
jenkins-pipeline
、
azure-powershell
、
docker-image
当从jenkinsfile调用Docker
powershell
时,它会继续执行,并且作业不会终止。docker { stage('PwShell') {
powershell
(return
浏览 52
提问于2021-11-18
得票数 0
6
回答
Jenkins
powershell
插件总是成功构建的。
powershell
、
jenkins
、
jenkins-plugins
我正在使用
Jenkins
PowerShell
插件来构建一个项目。Started by user admin Building in workspace C:\Users\Administrator\.
jenkins
\jobs\Test\workspace[workspace] $
powershell
.exe -NonInterac
浏览 7
提问于2015-12-18
得票数 24
回答已采纳
1
回答
jenkins
pipeline -如何使用
powershell
命令在声明性管道中构建docker镜像
powershell
、
docker
、
jenkins-pipeline
我正在尝试通过
jenkins
声明式管道构建一个docker镜像,该流程运行在
jenkins
的slave manchine windows server2019上,所以它需要使用
powershell
来运行--force-rm" }
jenkins
控制台的
输出
是 Build Container windowsservercoreiisremote-ltsc2019命令中使用
jenkins</em
浏览 2
提问于2020-03-14
得票数 1
2
回答
如何在第80列停止
Jenkins
截断/换行
powershell
、
jenkins
我有一个在
Jenkins
构建中执行的
Powershell
构建步骤,控制台将
输出
包装在第80列(这似乎是默认设置)。有没有办法防止这种列换行,让
Jenkins
为我们期望的
输出
使用更合适的列宽?
浏览 1
提问于2016-06-22
得票数 4
1
回答
Jenkins
执行
PowerShell
脚本
windows
、
powershell
、
jenkins
、
jenkins-plugins
、
executionpolicy
我试图从
Jenkins
运行
PowerShell
脚本,但它似乎完全忽略了执行策略!这是通过直接执行
powershell
.exe或使用实现的。其他信息:nt authority\system RemoteSigned但是,在运行
Jenkins
构建时下面
浏览 2
提问于2014-07-02
得票数 4
回答已采纳
1
回答
在
Powershell
中找不到接受参数错误的位置参数。
powershell
我对
Powershell
很陌生,我试图使用另一个PS脚本在
Jenkins
中以admin的身份运行PS脚本,脚本给出了它想要的
输出
,但它也给出了
输出
中的错误。
powershell
: Start-Process :在行中无法找到接受参数的位置参数:4 char:1 +
Powershell
-Command "Start-Process
Powershell
\xyz.ps1"
Powershell
-Command "Sta
浏览 1
提问于2018-12-05
得票数 1
回答已采纳
1
回答
为
Jenkins
管道中的
powershell
变量赋值
powershell
、
jenkins
、
jenkins-pipeline
我看到了几个关于如何在
Jenkins
管道中运行
Powershell
脚本以及如何捕获
输出
的文档。但是,我希望为下一个节点
powershell
脚本使用捕获的
输出
。例如: def msg =
powershell
(returnStdout: true, script: 'Write-Output "
PowerShell
is mighty!"} 现在,我希望在
Powershell
脚本中的下一个节点中使用ms
浏览 3
提问于2021-07-18
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Ansible+Jenkins实现带颜色的日志输出
Jenkins-构建Jenkins作业示例
Jenkins pipeline
PowerShell系列(一):PowerShell介绍和cmd命令行的区别
powershell运行netcat
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券