腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
8
回答
在声明式jenkins管道中,我可以动态地设置代理标签吗?
、
我的尝试(不起作用)如下所示:
agent
{ label 'master' } stage('Stage1') {echo "node_name: ${env.node_name}" }
agent
浏览 19
提问于2017-10-08
得票数 45
回答已采纳
2
回答
我可以在Jenkins中的迭代循环中动态分配节点吗?
、
我知道如何在一个阶段的定义中通过它的标签或其他闭包来指定代理:
agent
{ label 'some
agent
label' } steps { ..
浏览 11
提问于2021-03-03
得票数 1
1
回答
如何覆盖我的全局代理,让特定的阶段在jenkins声明性管道中的另一个代理上运行?
、
我添加了一个全局代理,如下所示:
agent
{ label 'windows' } stage('Initialize
Pipeline
') { cleanWs() printSuccess("
Pipeline
Started.")callWebhook("Running&quo
浏览 3
提问于2020-06-26
得票数 1
1
回答
Jenkins -没有在并行阶段创建专用工作区
、
pipeline
{ options {
agent
none timeout(time: 3, unit: 'HOURS') } st
浏览 10
提问于2022-03-16
得票数 1
1
回答
无法在Jenkins脚本中运行AWS CLI命令
、
、
、
我正在运行一个AWS命令并尝试捕获该命令 weight = sh ( aws route53 list-resource-record-sets \ --query "ResourceRecordSets[?Type == 'A' && Name == ${RECORD_NAME} && SetIdentifier ==
浏览 18
提问于2020-09-18
得票数 0
回答已采纳
2
回答
如何为每个阶段创建带有独立容器的动态jenkins管道?
、
我有固定工作的詹金斯管道:
agent
none buildDiscarder(logRotator(daysToKeepStr: '7'))
agent
' } script { }on ${podLabel}" } def pa
浏览 13
提问于2022-08-27
得票数 1
1
回答
Jenkins MultiBranch管道:选择仅构建2个特定分支
、
我尝试在所有阶段添加以下内容 when { anyOf { branch 'master'; branch 'dev' } } 但我唯一做到的就是停用了所有分支运行 这是我的完整管道Jenkinsfile
pipeline
{ triggers { } options {
浏览 4
提问于2021-04-07
得票数 1
1
回答
jenkins ssh代理无法将war复制到远程服务器
、
、
/usr/bin/env groovy environment {}[
Pipeline
] sshagent (hide) [ssh-
agent
][ssh-
agent
] Exec ssh-
age
浏览 49
提问于2021-07-06
得票数 0
回答已采纳
2
回答
在jenkins文件中设置环境变量
、
、
、
def someVariable = 'foo'
agent
any stage("build"){ environment
浏览 7
提问于2018-10-29
得票数 0
回答已采纳
1
回答
Jenkins管道未正确使用sshagent凭据
commit --allow-empty -m "test withCredentials"' } [
Pipeline
] stage[
Pipeline
] sshagent [ssh-
agent
] Using credentialsg
浏览 3
提问于2019-04-03
得票数 1
1
回答
Jenkins管道Kubernetes代理共享卷
、
、
pipeline
{ kubernetes { defaultContainer 'jnlp'All nodes of label ‘test-pod’ are offline
Agent</e
浏览 0
提问于2018-08-05
得票数 3
1
回答
Jenkins ssh代理插件正在堆叠,没有错误,没有超时问题
、
在jenkinsfile中,添加了简单的命令来运行ssh:
agent
any stage('---doingsomething---'以下是jenkins堆栈的输出片段[
Pipeline
] // stage[
Pipeline
] {[
Pipeline</e
浏览 8
提问于2020-01-08
得票数 0
2
回答
Jenkins
Pipeline
- ssh-
agent
找不到凭据
、
/usr/bin/env groovy
agent
any stage("build") {FATAL: [ssh-
agent
] Could not find specified credentials [ssh-
agent
] Looking for ssh-
agent
[ssh-
agent
] Exec s
浏览 160
提问于2019-10-21
得票数 0
回答已采纳
1
回答
Jenkinsfile:连接到服务器并在服务器上执行操作
、
、
、
Jenkinsfile:
agent
any PATH = "$PATH:/usr/local/bin/"Running in /var/www/car_prices[
Pipeline
] sh[
Pipeline
] //
浏览 0
提问于2020-03-20
得票数 0
1
回答
Jenkins声明样条-脚本无法将参数提取为varible
、
、
密码
agent
{ } choice choicesStarted by user ****[
Pipeline
] node /home/temp/jenkins_<
浏览 5
提问于2022-01-06
得票数 0
回答已采纳
1
回答
Jenkins管道Stageview插件显示额外的阶段
、
还有一些额外的阶段,如Declarative Checkout SCM、Declarative
Agent
Setup和Declarative Post Actions正在显示,它们不是我的Jenkinsfile以下是我的配置的版本信息:
pipeline
-stage-step
Pipeline
: Stage Step 2.3
浏览 1
提问于2019-04-11
得票数 2
回答已采纳
1
回答
如何为声明性并行步骤中的每个阶段使用执行器
、
pipeline
{ stages() { steps{(Heavy Build Stage / First job) #1stage("First Job"){
agent
{ label SLAVE_NAME在每个阶段使用customWorkspace选项时,我都有相同的行为
浏览 0
提问于2019-01-23
得票数 2
2
回答
如何将jenkins管道阶段执行定向到从参数派生的特定节点代理?
、
我有多个Jenkins节点代理,包括“主”、"tiering_
agent
1“和”卷“。我试图通过参数{}设置来设置执行阶段的节点。我有这个管道代码[
Pipeline
] { (Init) [
Pipeline</
浏览 4
提问于2018-10-14
得票数 1
回答已采纳
0
回答
Jenkins,主机密钥验证失败,脚本返回退出代码255
、
、
下面是一个失败的小秘诀:
agent
any steps {sh "ssh user@product.company.com 'echo $HOME'" }}[ssh-
agent
jenkinsunset SSH_AUTH_SOCK; u
浏览 8
提问于2017-12-02
得票数 3
回答已采纳
1
回答
在Jenkins声明性管道中运行在同一代理上的并行阶段
、
、
我一直在使用Jenkins管道进行类似的并行测试:
agent
{ label 'php' } stage('build') {为此,我将“无”代理分配给管道,将实际代理分配到所有阶段,但请求输入的阶段除外:
agent
none stage('build') {
agent
{
浏览 0
提问于2018-09-29
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
pipeline:pipeline 使用之 Shared Libraries
Jenkins pipeline
前端中的 Pipeline
第2.7篇 Redis 命令 PIPELINE
Redis-benchmark、Pipeline使用介绍
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券