[JIRA] (JENKINS-56624) docker.build

2 views
Skip to first unread message

guillecasco1@hotmail.com (JIRA)

unread,
Mar 19, 2019, 2:40:03 PM3/19/19
to jenkinsc...@googlegroups.com
guillermo casco created an issue
 
Jenkins / Story JENKINS-56624
docker.build
Issue Type: Story Story
Assignee: vjuranek
Components: docker-build-step-plugin, docker-plugin
Created: 2019-03-19 18:39
Priority: Minor Minor
Reporter: guillermo casco

I would like to execute docker.build command during Jenkins pipeline , with the --add-host parameter as I want to add a line in  the /etc/host file.

Something like: docker build t tag:latest-add-host="host:127.128.0.1" .

I can´t find a way to do this with jenkins and docker yet, is this possible? 

Right now my pipeline only runs  docker.build(imageNameTagged)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

guillecasco1@hotmail.com (JIRA)

unread,
Mar 19, 2019, 3:26:02 PM3/19/19
to jenkinsc...@googlegroups.com
guillermo casco commented on Story JENKINS-56624
 
Re: docker.build

I tried with : 
docker.build(imageNameTagged) , "--add-host=app.xxxx.com host-name.domain.com:172.x.x.x" 
But no entry was added in host/file.

pjdarton@gmail.com (JIRA)

unread,
Sep 24, 2019, 9:04:02 AM9/24/19
to jenkinsc...@googlegroups.com
pjdarton updated an issue
Change By: pjdarton
Component/s: docker-plugin
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages