jenkins-pipeline

Rest API in Jenkins to get the Pipeline (stages) information

可紊 提交于 2020-07-20 08:42:04
问题 I'm exploring the options to get the pipeline (stages) information in Jenkins through Rest API. We had a pipeline plug-in installed on Jenkins. Any help on same is highly appreciated. 回答1: You can use this endpoint to get the pipeline runs: https://github.com/jenkinsci/pipeline-stage-view-plugin/tree/master/rest-api#get-jobjob-namewfapiruns Each run blob should contain the corresponding stages, so you can extract the stages of the latest run. 来源: https://stackoverflow.com/questions/50594486

How do I run all jenkins pipeline steps except one in a docker container

坚强是说给别人听的谎言 提交于 2020-07-19 04:21:07
问题 I'm trying to set up a jenkins multibranch pipeline to run all my code validation steps in a docker container, then build the docker image and push it outside of said docker container. Currently, my Jenkinsfile looks sort of like this (slimmed down for readability): pipeline { agent { label 'AWS' } stages { stage('stuff in docker') { agent { dockerfile { filename 'Dockerfile.jenkins' reuseNode true } } steps { stuff } } stage('more stuff in docker') { agent { dockerfile { filename 'Dockerfile

How do I run all jenkins pipeline steps except one in a docker container

天大地大妈咪最大 提交于 2020-07-19 04:20:52
问题 I'm trying to set up a jenkins multibranch pipeline to run all my code validation steps in a docker container, then build the docker image and push it outside of said docker container. Currently, my Jenkinsfile looks sort of like this (slimmed down for readability): pipeline { agent { label 'AWS' } stages { stage('stuff in docker') { agent { dockerfile { filename 'Dockerfile.jenkins' reuseNode true } } steps { stuff } } stage('more stuff in docker') { agent { dockerfile { filename 'Dockerfile

How do I run all jenkins pipeline steps except one in a docker container

不羁的心 提交于 2020-07-19 04:20:25
问题 I'm trying to set up a jenkins multibranch pipeline to run all my code validation steps in a docker container, then build the docker image and push it outside of said docker container. Currently, my Jenkinsfile looks sort of like this (slimmed down for readability): pipeline { agent { label 'AWS' } stages { stage('stuff in docker') { agent { dockerfile { filename 'Dockerfile.jenkins' reuseNode true } } steps { stuff } } stage('more stuff in docker') { agent { dockerfile { filename 'Dockerfile

How would I store all failed stages of my declarative Jenkins pipeline

浪子不回头ぞ 提交于 2020-07-10 01:48:46
问题 In my Jenkins pipeline, I have 15 stages. Now I have a post function at the end of the Jenkins file to send me an email about whether the whole process is failed or success. I would like to include all the stages that are failed in the email too. Using post in each stage is not a good idea, because I would receive 15 emails each time the job runs. I am thinking of creating a list and save all failed env.STAGE_NAME in the list and print it at the end? But it would not allow me to do such a

How would I store all failed stages of my declarative Jenkins pipeline

北城以北 提交于 2020-07-10 01:47:28
问题 In my Jenkins pipeline, I have 15 stages. Now I have a post function at the end of the Jenkins file to send me an email about whether the whole process is failed or success. I would like to include all the stages that are failed in the email too. Using post in each stage is not a good idea, because I would receive 15 emails each time the job runs. I am thinking of creating a list and save all failed env.STAGE_NAME in the list and print it at the end? But it would not allow me to do such a

How would I store all failed stages of my declarative Jenkins pipeline

断了今生、忘了曾经 提交于 2020-07-10 01:47:06
问题 In my Jenkins pipeline, I have 15 stages. Now I have a post function at the end of the Jenkins file to send me an email about whether the whole process is failed or success. I would like to include all the stages that are failed in the email too. Using post in each stage is not a good idea, because I would receive 15 emails each time the job runs. I am thinking of creating a list and save all failed env.STAGE_NAME in the list and print it at the end? But it would not allow me to do such a

Multibranch Pipeline job scan cannot remove files

不问归期 提交于 2020-07-07 20:54:55
问题 We are using Multibranch Pipeline job on Jenkins. It scans branches on master and if there are changes then build is triggered on one of the slaves. However, sometimes during the scan, we receive an exception: java.io.IOException: Unable to delete '/var/lib/jenkins/jobs/sample.job.build/branches/feature-P.of17kqq8ojl6.-PFT-repo'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at hudson.Util.deleteRecursive(Util.java:352) at hudson.model.AbstractItem.performDelete

Where does the jenkins shared library files get stored?

﹥>﹥吖頭↗ 提交于 2020-07-06 09:47:29
问题 The shared library files in jenkins are loaded at the beginning of the job, where does it get stored? I am trying to access the dockerfile stored in the shared library, I need the path to give in the docker build command. Is there a way I can find out the place where the shared library files are loaded in jenkins? 回答1: If the shared library is loaded from SCM and your workspace path is jenkins/workspaces/jobName , then a copy is checked out to jenkins/workspaces/jobName@libs or similar (might

This version of OSX is not able to perform the necessary dSYM transformations

↘锁芯ラ 提交于 2020-07-06 07:48:28
问题 [31merror: could not complete submission of dSYM at /Users/XXUSERXX/Library/Developer/Xcode/DerivedData/ProjectName-flcoueeibbfifebpxptgzctdsqel/Build/Intermediates.noindex/ArchiveIntermediates/ProjectNameAlpha/BuildProductsPath/ProjectNameAlpha-iphoneos/ProjectName.app.dSYM: Error Domain=com.crashlytics.mac.error-domain.process-dsym Code=4 "This version of OSX is not able to perform the necessary dSYM transformations." UserInfo={NSLocalizedFailureReason=This version of OSX is not able to