Jenkins

Is there any way to get Gitlab pipeline artifacts in Jenkins?

主宰稳场 提交于 2020-12-12 02:06:43
问题 I have a project in gitlab. The project gets built for every check-in in the repo and build artifacts are created when the gitlab pipeline is successful. I want to get these build artifacts in my jenkins pipeline job. Is there any way to do that? I couldn't find any plugin in Jenkins to do this. Any help is appreciated. 回答1: The GitLab API offers this with both complete artifacts package (zip) and single files. You need a GitLab token which you can add as a Credential (secret text) and the

Is there any way to get Gitlab pipeline artifacts in Jenkins?

允我心安 提交于 2020-12-12 02:05:19
问题 I have a project in gitlab. The project gets built for every check-in in the repo and build artifacts are created when the gitlab pipeline is successful. I want to get these build artifacts in my jenkins pipeline job. Is there any way to do that? I couldn't find any plugin in Jenkins to do this. Any help is appreciated. 回答1: The GitLab API offers this with both complete artifacts package (zip) and single files. You need a GitLab token which you can add as a Credential (secret text) and the

Is there any way to get Gitlab pipeline artifacts in Jenkins?

早过忘川 提交于 2020-12-12 02:04:54
问题 I have a project in gitlab. The project gets built for every check-in in the repo and build artifacts are created when the gitlab pipeline is successful. I want to get these build artifacts in my jenkins pipeline job. Is there any way to do that? I couldn't find any plugin in Jenkins to do this. Any help is appreciated. 回答1: The GitLab API offers this with both complete artifacts package (zip) and single files. You need a GitLab token which you can add as a Credential (secret text) and the

Is there any way to get Gitlab pipeline artifacts in Jenkins?

萝らか妹 提交于 2020-12-12 02:04:27
问题 I have a project in gitlab. The project gets built for every check-in in the repo and build artifacts are created when the gitlab pipeline is successful. I want to get these build artifacts in my jenkins pipeline job. Is there any way to do that? I couldn't find any plugin in Jenkins to do this. Any help is appreciated. 回答1: The GitLab API offers this with both complete artifacts package (zip) and single files. You need a GitLab token which you can add as a Credential (secret text) and the

Jenkins Subversion Checkout Failing - “E175002: CRLF expected at end of chunk: -1/-1”

末鹿安然 提交于 2020-12-11 10:08:21
问题 I have a Jenkins v2.107.2 instance (running as a Windows service) which is checking out several projects via Subversion from a Visual SVN Server (on a seperate Windows PC). One of the projects (the largest - ~2.7GB) is occasionally, but then consistently failing with the following error when attempting to checkout: ERROR: Failed to check out https://example.com/myrepo org.tmatesoft.svn.core.SVNException: svn: E175002: CRLF expected at end of chunk: -1/-1 svn: E175002: REPORT request failed on

Jenkins Subversion Checkout Failing - “E175002: CRLF expected at end of chunk: -1/-1”

妖精的绣舞 提交于 2020-12-11 10:01:30
问题 I have a Jenkins v2.107.2 instance (running as a Windows service) which is checking out several projects via Subversion from a Visual SVN Server (on a seperate Windows PC). One of the projects (the largest - ~2.7GB) is occasionally, but then consistently failing with the following error when attempting to checkout: ERROR: Failed to check out https://example.com/myrepo org.tmatesoft.svn.core.SVNException: svn: E175002: CRLF expected at end of chunk: -1/-1 svn: E175002: REPORT request failed on

When I use Kubernetes as my agent in Jenkins it will not allow another executor in stage

别来无恙 提交于 2020-12-11 02:45:33
问题 This is a subset of my declarative Jenkinsfile: pipeline { agent { kubernetes { yamlFile 'pod.yml' defaultContainer 'tools' } } stages { stage('Init') { // <- this stage executes in Kubernetes and works very well steps { sh "echo init" } } stage('Build') { agent { label 'B202981' } // <- This wont work; B202981 is computer on my network steps { sh "echo build" } } } } When this pipelines runs it fails with an exception which you can see here and googling this exception didn't helped me. java

Jenkins构建历史如何批量删除,批量删除build history

白昼怎懂夜的黑 提交于 2020-12-10 10:01:12
Jenkins中没有直接提供删除构建历史的功能,但是我们在日常开发中可以会使用批量删除的操作,例如编写jenkins脚本时,前期会测试构建,后续调整jenkins过程中的fail build history等等。 通过在build history中一个一个记录的删除太麻烦了,我们还可以通过jenkins cl命令行进行批量删除。 在Manage Jenkins -> Script Console: 输入如下内容,点击【Run】 def jobName = "Item_name" def maxNumber = 100 Jenkins.instance.getItemByFullName(jobName).builds.findAll { it.number <= maxNumber }.each { it.delete() } 注:jobName 为需要删除构建历史的项目名称 Jenkins系列文章: 一、 Jenkins 系列教程-史上最简单Jenkins教程,教你一天学会使用Jenkins利器 二、 Centos 安装nodejs 三、 Centos 安装Maven 四、 Linux下安装java JDK 五、 jenkins启动报错 Job for jenkins.service failed because the control process exited with

Disable changelog in Jenkins pipeline checkout

橙三吉。 提交于 2020-12-09 23:07:15
问题 I have a Jenkins pipeline that checks out specific commits from several different repos. I would like to disable the calculation of the changeSet (changelog) since the /api/json call to the job takes a long time to compute (and the changelog is not important for that job in any case). In the pipeline I'm checking out the code with: checkout([$class: 'GitSCM', branches: [[name: commitHash]], doGenerateSubmoduleConfigurations: false, submoduleCfg: [], changelog: false, poll: false,

Disable changelog in Jenkins pipeline checkout

巧了我就是萌 提交于 2020-12-09 23:05:02
问题 I have a Jenkins pipeline that checks out specific commits from several different repos. I would like to disable the calculation of the changeSet (changelog) since the /api/json call to the job takes a long time to compute (and the changelog is not important for that job in any case). In the pipeline I'm checking out the code with: checkout([$class: 'GitSCM', branches: [[name: commitHash]], doGenerateSubmoduleConfigurations: false, submoduleCfg: [], changelog: false, poll: false,