cost 299 ms
從 Jenkins 運行時獲取變量

[英]Getting variables from Jenkins runtime

我的 jenkins 管道腳本中有幾個選擇: 如果我選擇上面的參數(勾選參數),我正在嘗試制作一個像 ["microservice1": true, "microservice2": true, etc.] 這樣的 map 那么有什么方法可以從運行時獲取這些變量嗎? 我的意思是 Jenkins 自己 ...

Jenkins:通用 Webhook 觸發器插件和多分支掃描 Webhook 觸發器 - genericVariables 問題

[英]Jenkins: Generic Webhook Trigger Plugin and Multibranch Scan Webhook Trigger - Issues with genericVariables

詢問: 還有其他人有什么想法嗎? 在過去的幾天里,我做了一些嘗試——不幸的是沒有任何結果。 Jenkins 日志也沒有給出任何結果。 有沒有其他人有我可以遵循的方法? 附錄第 3 部分: 我已將我在附錄第 2 部分下插入的請求正文粘貼在此處作為試驗基礎: https://jsonpath.com/ ...

java.lang.NoSuchMethodError:在步驟中找不到此類 DSL 方法“階段”

[英]java.lang.NoSuchMethodError: No such DSL method 'stages' found among steps

當我運行下面的腳本時,出現錯誤“ java.lang.NoSuchMethodError: No such DSL method stages found among steps ”。 有人可以告訴我為什么以及如何解決這個問題嗎? 基本上我需要為我的每個階段做,並且它必須並行運行。 我們可以在聲明 ...

如何在 jenkins 管道腳本中知道遠程服務器 ip?

[英]How to know remote server ip in jenkins pipeline script?

我實現了 jenkins 構建腳本。 該腳本由遠程服務器啟動。 (使用構建觸發器) 在build console Output日志中,記下 “由遠程主機 xx.xx.xxx.xxx(我的 ip)啟動” 我想知道在管道腳本中調用 jenkins 構建作業的遠程主機。 有任何想法嗎?? 謝謝。 ...

從 Jenkins API 獲取所有構建日志

[英]Getting all build logs from Jenkins API

我需要從 Jenkins 實例獲取所有構建的日志。 問題是,這會返回如此巨大的響應,以至於 Jenkins 實例本身用完了 memory。 因此,另一種方法是分別從每個文件夾中獲取所有構建。 那就是我面臨的問題。 當我查看文件夾時,有些構建在文件夾下 2 層,有些在文件夾下 3 層,也許還有一些構建 ...

Docker - Jenkins - Jenkins 中的本地系統文件/文件夾訪問和執行

[英]Docker - Jenkins - Local System Files/Folders Access and Execution in Jenkins

當jenkins鏡像安裝在docker桌面容器中時,如何訪問和執行jenkins中的本地系統文件夾/文件? 請幫我找到一種方法,我們可以通過它訪問和執行本地文件/文件夾,在 docker 桌面容器中可用的 jenkins 圖像內? 例如:當 cypress 項目在我們的本地系統中可用時,如何使用 j ...

Rim raf / jenkins-syntaxError:未執行的令牌。 在 ignore-enonent.js 中

[英]Rim raf / jenkins- syntaxError : Unexepected token . in ignore-enonent.js

嗨,星期一,我們所有的 jenkins 構建在 npm 安裝上開始失敗,安裝在 rim raf ignore.enonent.js 文件上我可以看到 rim raf 確實在 7 天前發布了一個新版本,但是 ignore-enonent.js 文件一直是這樣的。 還有其他人看到這個問題嗎? `Ser ...

如何在 Jenkinsfile 中獲取有關 gitea webhook 觸發器的信息?

[英]How to get information about the trigger of a gitea webhook in a Jenkinsfile?

我有一個 Gitea 和一個 Jenkins 服務器。 我在 Jenkins 中安裝了 Gitea 插件並設置了一個多分支管道,它本身向 gitea 存儲庫添加了一個 webhook。 這很好用,但如果添加了新標簽,則 Jenkins 管道將不會構建。 我想添加另一個 webhook 來這樣做。 ...

如何在“編輯構建信息”中的 jenkins 文本中從另一個管道項目調用的項目中顯示

[英]How to display in a project that is called from another pipeline project in jenkins text in "Edit Build Information"

您好:我在 Jenkins 有一個名為“ProjectLaunch”的管道項目,每周有一天自動啟動其他項目。 我想在“編輯構建信息”中顯示一個文本,在被調用的項目中顯示類似“ProjectCalled full launched”的內容。 使用“ProjectLaunch”中的管道,我只能在其“編輯 ...

如何從列表中的字符串中刪除空格?

[英]How do i remove whitespace from a string from a list?

我有這個 bash 腳本,它列出了 jenkins 上的所有工作。我的工作中有空格,有些沒有。 例如,我有工作要求: 新工作測試工作但是,當我運行此腳本時,我得到以下結果: 相反,我想 output: 我在這里錯過了什么? ...

2023-01-30 11:48:25   2   56    bash / jenkins  
使用k8s部署jenkins並制作slave Pod執行任務,如何將pod中生成的文件或安裝包放入jenkins pvc

[英]Using k8s to deploy jenkins and make slave Pods to perform tasks, how to put files or installation packages generated in the pod into jenkins pvc

我部署了 jenkins 並使用 slave pod 來運行它。 我使用的是openebs的local pv方式,將jenkins和volume部署在同一個節點上。 我使用 volume 模式傳輸 pod 產生的數據。 共享在宿主機的jenkins卷中。 我的任務是下載代碼,並在其中添加一些安裝包 ...

Jenkins-如何合並兩個 git 分支,然后構建合並后的分支

[英]Jenkins- How to merge two git branch and then build the merged branch

在 Jenkins 如何合並兩個 git 分支,如字段中提供的: 要構建的 branch_names: branch_name1, branch_name2 圖片已添加並且(如果沒有沖突)然后構建合並的分支我嘗試了多分支部署,但它不符合我預期的用例 ...

Docker 容器無法啟動

[英]Docker container cannot start

我已經構建了一個 docker 圖像來運行 jenkins 服務器,在為此圖像創建容器之后,我發現該容器保持退出狀態,並且永遠不會啟動。 即使我嘗試使用 UI 啟動容器。 這是我采取的步驟,也許我遺漏了什么? 我已經在端口 8080 上運行了 java,也許這會影響容器狀態? 不知道為什么它在這個端 ...

使用每個 {it} 遍歷 groovy 對象(列表)並將元素傳遞到 Jenkins 中的 json 有效載荷

[英]Looping through groovy object(List) using each{it} and pass the the elements into a json payload in Jenkins

我在 groovy Jenkinsfile 中有一個包含工作區名稱的列表。 我編寫了一個 each() 循環來遍歷列表,並使用下面端點中的名稱從 api 響應中獲取工作區 ID。 獲取 ID 后,我想將它們作為 json 負載的一部分進行傳遞。 有沒有一種方法可以遍歷返回的 ID 列表和 appen ...

Spring Boot Microservices - Jenkinsfile “您指定的目標需要一個項目來執行,但此目錄中沒有 POM”

[英]Spring Boot Microservices - Jenkinsfile "The goal you specified requires a project to execute but there is no POM in this directory"

對於我的 Spring Boot Microservices 示例,我在 Jenkins 中運行 Jenkinsfile 時遇到問題。 我在 Docker 上運行 Jenkins。 為 Jenkins 實施所需設置並在我的 Spring 引導微服務示例中創建 Jenkinsfile 后,我在 Je ...

Cucumber HTML 使用 python 在 Jenkins 中報告

[英]Cucumber HTML reports in Jenkins using python

我正在嘗試使用 python 腳本在 Jenkins 中創建一個測試步驟。 這個 python 腳本將用於自動化回歸測試。 這些測試在 GitHub 存儲庫中,我的 python 腳本將在一次讀取一個測試用例后處理請求並將其發送到服務器,服務器將返回該測試用例的通過或失敗。 我想可視化這個 pyth ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM