Category : jenkins-pipeline

i am building a docker image, that will run a flask application. when i do it locally with no problem i can build the image my dockerfile: FROM python:3.7 #RUN apt-get update -y WORKDIR /app RUN curl www.google.com COPY requirements.txt requirements.txt RUN pip install –trusted-host pypi.org –trusted-host files.pythonhosted.org -r requirements.txt my jenkinspipeline pipeline { agent ..

Read more

I am facing an error while running the Jenkins pipeline, All the pipeline is working fine till it get to the stage Changing tag. The error is Sorry, home directories outside of /home are not currently supported. This is my Jenkinsfile: pipeline { environment { registry = "" registryCredential = ‘dockerhub’ dockerImage = ” } ..

Read more

I am using a very simple script mentioned below as per the official docs (https://www.jenkins.io/doc/book/pipeline/docker/): pipeline { agent { docker { image ‘node:14-alpine’ } } stages { stage(‘Test’) { steps { sh ‘node –version’ } } } } Simple as it is, it outputs follows: 22:58:45 [Pipeline] } 22:58:45 [Pipeline] // stage 22:58:45 [Pipeline] withEnv ..

Read more