AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[jenkins-multibranch](server)

Martin Hope
francois P
Asked: 2021-02-06 01:04:13 +0800 CST

jenkins groovy 文件步骤管理:使步骤继续以前的错误

  • 1

您好,我使用 jenkins groovy 文件来管理管道的步骤。

结构就像:

>     ```
>     
>     2 pipeline                                                                                                                                                                                                                                      3 {                                                                   
> 4     agent none                                                      
> 5                                                                     
> 6     options {                                                       
> 7         timeout(time: 240, unit: 'MINUTES')                         
> 8     }                                                               
> 9                                                                     
> 10     stages {                                                       
> 11         stage ("clean xxxxxxx") {                                  
> 12             agent {                                                
> 13                 node {                                             
> 14                     label "xxxxxxx"                                
> 15                     customWorkspace "F:\\xxxxxxx"                  
> 16                 }                                                  
> 17             }                                                      
> 18             steps                                                  
> 19             {                                                      
> 20                 script                                             
> 21                 {                                                  
> 22                     bat """                                        
> 23                         f:                                         
> 24                         cd \\                                      
> 25                         python
> xxxxxxx/scripts/pipeline/removeOldJenkinsBuildDir.py --nbdays 30
> --delete yes                                                                                                                        26                         python
> xxxxxxx/scripts/pipeline/cleanDotConan.py f: --delete                 
> 27                         Powershell("Get-wmiObject -Class
> win32_logicaldisk")                                                   
> 28                     """                                            
> 29                 }                                                  
> 30             }                                                      
> 31         }   
>     
>     ```

对于我列表中的每个节点,依此类推。

我的问题

如果一个步骤失败了所有其余的开始并忽略消息: Stage "clean XXXXXXXX" skipped due to earlier failure(s)。

所以跳过了步骤,但我真的希望它们运行。

我的目标

在这里设置一些东西可能在步骤或更高级别,以避免跳过并强制运行所有步骤。我能做些什么呢?更改选项集?为每个步骤添加选项?

(事实上​​我发现了很多例子;但无法使用它们或崩溃了:))

powershell jenkins jenkins-multibranch
  • 1 个回答
  • 1464 Views
Martin Hope
Bhuwan Bhandari
Asked: 2020-08-10 23:47:45 +0800 CST

sudo 错误“需要终端或 -S 选项”

  • 1
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/myapp_FrontUAT
using credential 27a4cc0a-d18c-4a8f-bfcd-788d481e12ed
> /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> /usr/bin/git config remote.origin.url [email protected]:root/myapp_Front.git # timeout=10
Fetching upstream changes from [email protected]:root/myapp_Front.git
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.18.4'
using GIT_SSH to set credentials 
> /usr/bin/git fetch --tags --progress -- [email protected]:root/myapp_Front.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/myapp_Develop^{commit} # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/origin/myapp_Develop^{commit} # timeout=10
Checking out Revision 30fb4ffa6003e057a053881b7f08a62bd53cb2c1 (refs/remotes/origin/myapp_Develop)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 30fb4ffa6003e057a053881b7f08a62bd53cb2c1 # timeout=10
Commit message: "update features of ghar naksa."
> /usr/bin/git rev-list --no-walk 30fb4ffa6003e057a053881b7f08a62bd53cb2c1 # timeout=10
Checking for pre-build
Executing pre-build step
Checking if email needs to be generated
No emails were triggered.
[myapp_FrontUAT] $ /bin/sh -xe /tmp/jenkins2383517590544583257.sh
+ sudo git checkout myapp_Develop

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

sudo: a terminal is required to read the password; either use the -S
option to read from standard input or configure an askpass helper
Build step 'Execute shell' marked build as failure Discard old
builds...

#1544 is removed because old than numToKeep
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Always
Sending email for trigger: Always
messageContentType = text/plain; charset=UTF-8
Collecting change authors...
    build: 1647
Adding recipients from project recipient list
Analyzing: [email protected]
Looking for: [email protected]
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: [email protected]
    => found type: 0
Analyzing: [email protected]
Looking for: [email protected]
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: [email protected]
    => found type: 0
Analyzing: [email protected]
Looking for: [email protected]
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: [email protected]
    => found type: 0
Adding recipients from trigger recipient list
Setting In-Reply-To since last build was not successful
Successfully created MimeMessage
Sending email to: [email protected]
MessagingException message: failed to connect, no password specified?
Finished: FAILURE
sudo jenkins jenkins-multibranch
  • 1 个回答
  • 847 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve