Jenkins

Jenkins pipeline - How to give choice parameters dynamically

﹥>﹥吖頭↗ 提交于 2020-05-12 04:44:37
问题 pipeline { agent any stages { stage("foo") { steps { script { env.RELEASE_SCOPE = input message: 'User input required', ok: 'Release!', parameters: [choice(name: 'RELEASE_SCOPE', choices: 'patch\nminor\nmajor', description: 'What is the release scope?')] } echo "${env.RELEASE_SCOPE}" } } } } In this above code, The choice are hardcoded (patch\nminor\nmajor) -- My requirement is to dynamically give choice values in the dropdown. I get the values from calling api - Artifacts list (.zip) file

Jenkins with Azure active directory authentication: REST API access not working with Bearer token

…衆ロ難τιáo~ 提交于 2020-05-12 04:44:18
问题 I need to access Jenkins REST API using python code. Need some guidance about the correct approach. I have hosted jenkins v2.176.1 in apache tomcat with SSL enabled. I have configured Azure AD authentication based on this. I am able to login using my Azure AD credentials in browser and access the REST API of jenkins. When i try to access the REST API from curl or postman based on the samples here i am able to get the access token but jenkins rest api(with Authorization: Bearer [access_token]

Jenkins with Azure active directory authentication: REST API access not working with Bearer token

丶灬走出姿态 提交于 2020-05-12 04:43:41
问题 I need to access Jenkins REST API using python code. Need some guidance about the correct approach. I have hosted jenkins v2.176.1 in apache tomcat with SSL enabled. I have configured Azure AD authentication based on this. I am able to login using my Azure AD credentials in browser and access the REST API of jenkins. When i try to access the REST API from curl or postman based on the samples here i am able to get the access token but jenkins rest api(with Authorization: Bearer [access_token]

Jenkins pipeline - How to give choice parameters dynamically

点点圈 提交于 2020-05-12 04:43:30
问题 pipeline { agent any stages { stage("foo") { steps { script { env.RELEASE_SCOPE = input message: 'User input required', ok: 'Release!', parameters: [choice(name: 'RELEASE_SCOPE', choices: 'patch\nminor\nmajor', description: 'What is the release scope?')] } echo "${env.RELEASE_SCOPE}" } } } } In this above code, The choice are hardcoded (patch\nminor\nmajor) -- My requirement is to dynamically give choice values in the dropdown. I get the values from calling api - Artifacts list (.zip) file

How can I have unique build numbers across branches with Jenkins & the Pipeline Multibranch Plugin

醉酒当歌 提交于 2020-05-10 09:40:17
问题 We are using Jenkins Pipeline Multibranch Plugin with Blue Ocean. Through my reading, I believe it is quite common to tie your project's build number to the Jenkins run, as this allows traceability from an installed application through to the CI system, then to the change in source control, and then onto the issue that prompted the change. The problem is that for each branch, the run number begins at 0. For a project with multiple branches, it seems impossible to guarantee a unique build

How can I have unique build numbers across branches with Jenkins & the Pipeline Multibranch Plugin

谁说我不能喝 提交于 2020-05-10 09:38:27
问题 We are using Jenkins Pipeline Multibranch Plugin with Blue Ocean. Through my reading, I believe it is quite common to tie your project's build number to the Jenkins run, as this allows traceability from an installed application through to the CI system, then to the change in source control, and then onto the issue that prompted the change. The problem is that for each branch, the run number begins at 0. For a project with multiple branches, it seems impossible to guarantee a unique build

Delete a Jenkins Build via GUI

久未见 提交于 2020-05-10 07:02:16
问题 How can I delete a build from the Jenkins GUI? I know that I can delete the directory from the 'jobs' folder, but I want to do it from the GUI. Is it also possible to delete multiple builds? 回答1: If you go into the build you want to delete and if you have the permissions to delete, then you will see on the upper right corner a button "Delete this build". 回答2: To delete any job from Gui,Go to your job and on left side,click on delete project. 回答3: For deleting the entire build history you can

“Java.lang.UnsatisfiedLinkError: no opencv_java320 in java.library.path”

两盒软妹~` 提交于 2020-05-10 06:18:55
问题 I have a selenium test that when it finishes makes some operations with OpenCV. With IntelliJ IDEA it works fine, the operations process correctly, but when I try to execute through command line (for Jenkins use in the near future), I get the error mentioned above: "Java.lang.UnsatisfiedLinkError: no opencv_java320 in java.library.path" I read the other questions on here and I've set up the java.library.path to the path where the jar and dll files are, but the error still comes up and I'm

“Java.lang.UnsatisfiedLinkError: no opencv_java320 in java.library.path”

混江龙づ霸主 提交于 2020-05-10 06:18:46
问题 I have a selenium test that when it finishes makes some operations with OpenCV. With IntelliJ IDEA it works fine, the operations process correctly, but when I try to execute through command line (for Jenkins use in the near future), I get the error mentioned above: "Java.lang.UnsatisfiedLinkError: no opencv_java320 in java.library.path" I read the other questions on here and I've set up the java.library.path to the path where the jar and dll files are, but the error still comes up and I'm

Jenkins的重启几种方式

荒凉一梦 提交于 2020-05-09 15:38:01
一、在Linux中Jenkins启动/重启/停止命令 启动 service jenkins start 重启 service jenkins restart 停止 service jenkins stop 二、在Jenkins页面上启动/重启/停止命令 访问我们部署的Jenkins服务应用网址。我这里是:http://127.0.0.1:8086 关闭 http://127.0.01:8086/exit 重启 http://127.0.01:8086/restart 重新加载配置 http://127.0.01:8086/reload 来源: oschina 链接: https://my.oschina.net/piaoxianren/blog/4271815