【问题标题】:Jenkins Blue Ocean Provide Credentials for Subversion SCM StepJenkins Blue Ocean 为 Subversion SCM 步骤提供凭证
【发布时间】:2020-01-23 18:09:07
【问题描述】:

我在一个普通的 WIN10-VM 上设置了一个 Jenkins(所有推荐的插件)来测试 Blue Ocean 插件是否是我和我的同事简单构建设置的选项。此外,我设置了一个本地 Git-Server (Bonobo) 来存储 BlueOcean 的 Jenkinsfile(实际上不支持 SVN)。

我在 Blue Ocean 中创建了一条新管道。作为第一步,我想通过颠覆检查源代码。我创建了一个 subversion 步骤并填写了存储库的 url 并检查了 poll 选项。现在我需要提供 svn-repro 的凭据,但我不知道该怎么做。

是否可以在 BlueOcean 中使用 svn-plugin 或者是使用脚本从 BlueOcean 中的 svn 结帐的唯一方法?

到目前为止我尝试了什么:

  1. 在 SYSTEM-CMD 中接受 https-Certificate 作为 SYSTEM

  2. 将 SVN 凭据添加到 Jenkins/管道

  3. 尝试按照 (How to set up SVN credentials in Jenkins?) 中的建议设置凭据

【问题讨论】:

    标签: jenkins svn credentials jenkins-blueocean


    【解决方案1】:

    在从几个网站得到一些提示和技巧后,我自己找到了答案:

    1. 为“从源代码管理中签出”生成代码片段,如下所述:(Checkout SVN with credentials in Jenkins pipeline?)
    2. 转到管道编辑器并按 [Strg]+[s] 打开“管道脚本”窗口
    3. 新建一个Stage,在Steps中填入代码sn-p:
    stage('Checkout with SVN'){
         steps {
          ***Paste here the code snippet from the generator (Step 1)***
         }
        }
    
    1. 很高兴结帐:) 问候, 蓝屏错误

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-27
      • 1970-01-01
      相关资源
      最近更新 更多