Jenkins

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

Jenkins: pass git commit hash to a downstream job

…衆ロ難τιáo~ 提交于 2020-07-18 05:31:25
问题 I have 2 jobs (A and B). Job A points to a git repo at URL-A. Job B points to a different git repo, at URL-B. Once job A finishes and is stable, it should trigger job B and pass the git commit hash that was used in job A's build. What is the simplest way to achieve that? (Job B corresponds to a script checked out from URL-B that has 2 parameters: a git commit hash and a JAR artifact that will be wrapped in a Docker image and pushed to Docker hub) 回答1: In Job B, check This project is

Jenkins: pass git commit hash to a downstream job

て烟熏妆下的殇ゞ 提交于 2020-07-18 05:31:10
问题 I have 2 jobs (A and B). Job A points to a git repo at URL-A. Job B points to a different git repo, at URL-B. Once job A finishes and is stable, it should trigger job B and pass the git commit hash that was used in job A's build. What is the simplest way to achieve that? (Job B corresponds to a script checked out from URL-B that has 2 parameters: a git commit hash and a JAR artifact that will be wrapped in a Docker image and pushed to Docker hub) 回答1: In Job B, check This project is

Jenkins build after mercurial commit

筅森魡賤 提交于 2020-07-15 03:44:04
问题 I've been working on this project for about a week now and I've been searching for 2 days without any clear explanation online. For a school assignment, we need to set up a buildserver with the following programs: Maven, as our build tool. Mercurial as our versioning system. Java (JRE), javac and javadoc. JUnit for unit testing. Jenkins (with JDepend plugin). We need to create 3 jobs, and 1 of those jobs is: Every time the (local) repository of Mercurial gets edited, a build needs to start.

Jenkins build after mercurial commit

左心房为你撑大大i 提交于 2020-07-15 03:44:00
问题 I've been working on this project for about a week now and I've been searching for 2 days without any clear explanation online. For a school assignment, we need to set up a buildserver with the following programs: Maven, as our build tool. Mercurial as our versioning system. Java (JRE), javac and javadoc. JUnit for unit testing. Jenkins (with JDepend plugin). We need to create 3 jobs, and 1 of those jobs is: Every time the (local) repository of Mercurial gets edited, a build needs to start.

Jenkins build after mercurial commit

与世无争的帅哥 提交于 2020-07-15 03:43:00
问题 I've been working on this project for about a week now and I've been searching for 2 days without any clear explanation online. For a school assignment, we need to set up a buildserver with the following programs: Maven, as our build tool. Mercurial as our versioning system. Java (JRE), javac and javadoc. JUnit for unit testing. Jenkins (with JDepend plugin). We need to create 3 jobs, and 1 of those jobs is: Every time the (local) repository of Mercurial gets edited, a build needs to start.

jenkins credential is not working - Dockerhub

左心房为你撑大大i 提交于 2020-07-10 10:34:09
问题 I am tring to build and publish my job with the help of CloudBees Docker Build and Publish plugin. I added my credentials to Jenkins. When I build the job, it stucks at pushing into Docker by saying authentication error. I checked from cmd that I can login to docker and I could created the image but cannot do it with Jenkins. Do you have any idea about how to solve this problem? Error log is in the following: [jenkins-docker] $ docker tag c89e01bffe59 reponame/imagename:latest [jenkins-docker

Containerized Jenkins: establish connection to docker cloud in internal network

亡梦爱人 提交于 2020-07-10 10:30:21
问题 I am trying to connect a mac to a raspberry running Jenkins, to start docker build slaves on the mac on demand. But I can't establish the connection in Jenkins' docker cloud configuration. My setup is as follows: raspberry pi at 192.168.2.111: Jenkins running in docker mac mini at 192.168.2.220 using docker for mac: this should run docker containers as build slaves on demand via Jenkins docker plugin The SSH connection from Jenkins to mac works. The mac agent is up and running. Now I want to