Related
Casper Press: I again had a docker permissions issue running through the Jenkins declaration pipeline. I want to build and publish a Python package via a Jenkins job in a Docker container: pipeline {
agent {
docker {
image 'python:3.7'
label
Gilad Shahrabani: Is there a way to dynamically set the proxy tag instead of a plain string? The work is divided into two phases: The first stage - always runs on the "master" agent. At the end of this stage I will know on which agent the second stage should r
Floating Sunfish: I'm trying to create a Docker image of a Golang project and upload it to Docker Hub via Jenkins Declarative Pipeline. I am able to build my project and run all tests. Mine Jenkinsfileis as follows: #!/usr/bin/env groovy
// The above line is u
Beriato How do I setup the pipeline so that Docker pulls images from the local registry? Beriato Found in a user mailing list post , but I don't see it in the official documentation. For posterity, here is the linked answer agent {
docker {
image "image
Lucillo I am using Docker Registry on Artifactory. I can pull/push images using docker commands. Now I try to push the image using Jenkins line draw. The image is called registry-url/docker/image:latest. I have a docker repository on Artifactory called docker.
Floating Sunfish: I'm trying to create a Docker image of a Golang project and upload it to Docker Hub via Jenkins Declarative Pipeline. I am able to build my project and run all tests. Mine Jenkinsfileis as follows: #!/usr/bin/env groovy
// The above line is u
Tim I would like to get the output of my sh result by: pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
result=sh(script:'ls -al', returnStdout: true)
}
}
}
}
Then it sho
Gilad Shahrabani: Is there a way to dynamically set the proxy tag instead of a plain string? The work is divided into two phases: The first stage - always runs on the "master" agent. At the end of this stage I will know on which agent the second stage should r
Thomas Hirsch I just ran into an issue when running a Jenkins declarative pipeline on a Jenkins server that was itself running in Docker, accessible docker.sockfrom the host . The structure of the pipeline is very simple: pipeline {
agent {
docker
Beriato How do I setup the pipeline so that Docker pulls images from the local registry? Beriato Found in a user mailing list post , but I don't see it in the official documentation. For posterity, here is the linked answer agent {
docker {
image "image
Thiago Silva I have this Dockerfile : FROM python:3.7
CMD ["/bin/bash"]
and this Jenkinsfile : pipeline {
agent {
dockerfile {
filename 'Dockerfile'
}
}
stages {
stage('Install') {
steps {
sh 'pip install --upgrade pip
Beriato How do I setup the pipeline so that Docker pulls images from the local registry? Beriato Found in a user mailing list post , but I don't see it in the official documentation. For posterity, here is the linked answer agent {
docker {
image "image
Mohan Cons I redeploy the docker container whenever gitlab is triggered via the jenkins pipeline. So I can't delete the docker container with the image name. I follow the following commands: sh 'docker ps -f name=imagename -q | xargs --no-run-if-empty docker c
dane_griffiths I'm trying to increase my pom version via Jenkins, but I'm facing a number of issues with the script element of the Jenkins declarative pipeline. my goal is: Jenkins pulls code from SCM Run the Maven plugin Incremental version of the app in the
Tim I would like to get the output of my sh result by: pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
result=sh(script:'ls -al', returnStdout: true)
}
}
}
}
Then it sho
Thomas Hirsch I just ran into an issue when running a Jenkins declarative pipeline on a Jenkins server that was itself running in Docker, accessible docker.sockfrom the host . The structure of the pipeline is very simple: pipeline {
agent {
docker
Floating Sunfish: I'm trying to create a Docker image of a Golang project and upload it to Docker Hub via Jenkins Declarative Pipeline. I am able to build my project and run all tests. Mine Jenkinsfileis as follows: #!/usr/bin/env groovy
// The above line is u
Floating Sunfish: I'm trying to create a Docker image of a Golang project and upload it to Docker Hub via Jenkins Declarative Pipeline. I am able to build my project and run all tests. Mine Jenkinsfileis as follows: #!/usr/bin/env groovy
// The above line is u
Tim I would like to get the output of my sh result by: pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
result=sh(script:'ls -al', returnStdout: true)
}
}
}
}
Then it sho
Gilad Shahrabani: Is there a way to dynamically set the proxy tag instead of a plain string? The work is divided into two phases: The first stage - always runs on the "master" agent. At the end of this stage I will know on which agent the second stage should r
Tim I would like to get the output of my sh result by: pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
result=sh(script:'ls -al', returnStdout: true)
}
}
}
}
Then it sho
Gilad Shahrabani: Is there a way to dynamically set the proxy tag instead of a plain string? The work is divided into two phases: The first stage - always runs on the "master" agent. At the end of this stage I will know on which agent the second stage should r
Beriato How do I setup the pipeline so that Docker pulls images from the local registry? Beriato Found in a user mailing list post , but I don't see it in the official documentation. For posterity, here is the linked answer agent {
docker {
image "image
Beriato How do I setup the pipeline so that Docker pulls images from the local registry? Beriato Found in a user mailing list post , but I don't see it in the official documentation. For posterity, here is the linked answer agent {
docker {
image "image
Lucillo I am using Docker Registry on Artifactory. I can pull/push images using docker commands. Now I try to push the image using Jenkins line draw. The image is called registry-url/docker/image:latest. I have a docker repository on Artifactory called docker.
Mohan Cons I redeploy the docker container whenever gitlab is triggered via the jenkins pipeline. So I can't delete the docker container with the image name. I follow the following commands: sh 'docker ps -f name=imagename -q | xargs --no-run-if-empty docker c
Thiago Silva I have this Dockerfile : FROM python:3.7
CMD ["/bin/bash"]
and this Jenkinsfile : pipeline {
agent {
dockerfile {
filename 'Dockerfile'
}
}
stages {
stage('Install') {
steps {
sh 'pip install --upgrade pip
Tim I would like to get the output of my sh result by: pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
result=sh(script:'ls -al', returnStdout: true)
}
}
}
}
Then it sho
Tim I would like to get the output of my sh result by: pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
result=sh(script:'ls -al', returnStdout: true)
}
}
}
}
Then it sho