
[英]Getting variables from Jenkins runtime
我的 jenkins 管道腳本中有幾個選擇: 如果我選擇上面的參數(勾選參數),我正在嘗試制作一個像 ["microservice1": true, "microservice2": true, etc.] 這樣的 map 那么有什么方法可以從運行時獲取這些變量嗎? 我的意思是 Jenkins 自己 ...
[英]Getting variables from Jenkins runtime
我的 jenkins 管道腳本中有幾個選擇: 如果我選擇上面的參數(勾選參數),我正在嘗試制作一個像 ["microservice1": true, "microservice2": true, etc.] 這樣的 map 那么有什么方法可以從運行時獲取這些變量嗎? 我的意思是 Jenkins 自己 ...
[英]Jenkins: Generic Webhook Trigger Plugin and Multibranch Scan Webhook Trigger - Issues with genericVariables
詢問: 還有其他人有什么想法嗎? 在過去的幾天里,我做了一些嘗試——不幸的是沒有任何結果。 Jenkins 日志也沒有給出任何結果。 有沒有其他人有我可以遵循的方法? 附錄第 3 部分: 我已將我在附錄第 2 部分下插入的請求正文粘貼在此處作為試驗基礎: https://jsonpath.com/ ...
[英]java.lang.NoSuchMethodError: No such DSL method 'stages' found among steps
當我運行下面的腳本時,出現錯誤“ java.lang.NoSuchMethodError: No such DSL method stages found among steps ”。 有人可以告訴我為什么以及如何解決這個問題嗎? 基本上我需要為我的每個階段做,並且它必須並行運行。 我們可以在聲明 ...
[英]AWS CLI to delete all load balancer resources from AWS
我想刪除從下面的查詢返回的所有負載均衡器。 問題是創建一個數組,然后遍歷每個項目以從 Jenkins 中的我的 Groovy 管道腳本中刪除。 JSON output: 用於刪除負載均衡器的 AWS CLI delete 命令: ...
[英]How to know remote server ip in jenkins pipeline script?
我實現了 jenkins 構建腳本。 該腳本由遠程服務器啟動。 (使用構建觸發器) 在build console Output日志中,記下 “由遠程主機 xx.xx.xxx.xxx(我的 ip)啟動” 我想知道在管道腳本中調用 jenkins 構建作業的遠程主機。 有任何想法嗎?? 謝謝。 ...
[英]Getting all build logs from Jenkins API
我需要從 Jenkins 實例獲取所有構建的日志。 問題是,這會返回如此巨大的響應,以至於 Jenkins 實例本身用完了 memory。 因此,另一種方法是分別從每個文件夾中獲取所有構建。 那就是我面臨的問題。 當我查看文件夾時,有些構建在文件夾下 2 層,有些在文件夾下 3 層,也許還有一些構建 ...
[英]Need to take Jenkins jobs backup last 15 days using shell script
我是 Jenkins 服務器的新手,備份 Jenkins 作業和插件,並刪除超過 15 天的作業和插件。使用 shell 腳本 ...
[英]Docker - Jenkins - Local System Files/Folders Access and Execution in Jenkins
當jenkins鏡像安裝在docker桌面容器中時,如何訪問和執行jenkins中的本地系統文件夾/文件? 請幫我找到一種方法,我們可以通過它訪問和執行本地文件/文件夾,在 docker 桌面容器中可用的 jenkins 圖像內? 例如:當 cypress 項目在我們的本地系統中可用時,如何使用 j ...
[英]Rim raf / jenkins- syntaxError : Unexepected token . in ignore-enonent.js
嗨,星期一,我們所有的 jenkins 構建在 npm 安裝上開始失敗,安裝在 rim raf ignore.enonent.js 文件上我可以看到 rim raf 確實在 7 天前發布了一個新版本,但是 ignore-enonent.js 文件一直是這樣的。 還有其他人看到這個問題嗎? `Ser ...
[英]How to get information about the trigger of a gitea webhook in a Jenkinsfile?
我有一個 Gitea 和一個 Jenkins 服務器。 我在 Jenkins 中安裝了 Gitea 插件並設置了一個多分支管道,它本身向 gitea 存儲庫添加了一個 webhook。 這很好用,但如果添加了新標簽,則 Jenkins 管道將不會構建。 我想添加另一個 webhook 來這樣做。 ...
[英]how to identify if a job is a job present in job-DSL in jenkins
大家好,我有一個問題,我似乎無法弄清楚我想確定所有非工作 DSL 工作。 我怎樣才能做到這一點? 我已經有一個 python 文件,其中列出了所有作業。 在這些中,我需要確定非 DSL 作業。 ...
[英]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: 我在這里錯過了什么? ...
[英]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- How to merge two git branch and then build the merged branch
在 Jenkins 如何合並兩個 git 分支,如字段中提供的: 要構建的 branch_names: branch_name1, branch_name2 圖片已添加並且(如果沒有沖突)然后構建合並的分支我嘗試了多分支部署,但它不符合我預期的用例 ...
[英]Read html select value into jenkins Active Choice Reactive Reference Parameter
`我正在使用 Active Choice Reactive Reference Parameter 來獲取基於先前的 Active choice parameter (VMConfiguration) 加載的選項。 但是我能夠得到一個下拉列表,其中只有“Ver1”、“Ver2”、“Ver3”。 ...
[英]Docker container cannot start
我已經構建了一個 docker 圖像來運行 jenkins 服務器,在為此圖像創建容器之后,我發現該容器保持退出狀態,並且永遠不會啟動。 即使我嘗試使用 UI 啟動容器。 這是我采取的步驟,也許我遺漏了什么? 我已經在端口 8080 上運行了 java,也許這會影響容器狀態? 不知道為什么它在這個端 ...
[英]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 "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 reports in Jenkins using python
我正在嘗試使用 python 腳本在 Jenkins 中創建一個測試步驟。 這個 python 腳本將用於自動化回歸測試。 這些測試在 GitHub 存儲庫中,我的 python 腳本將在一次讀取一個測試用例后處理請求並將其發送到服務器,服務器將返回該測試用例的通過或失敗。 我想可視化這個 pyth ...