god help us all
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
def call(String dockerRepo, String imageName, String dockerfilePath, String buildContext, String nexusUser, String nexusPass) {
|
def call(String dockerRepo, String imageName, String dockerfilePath, String buildContext, String nexusUser, String nexusPass) {
|
||||||
container('custom-docker') {
|
container('custom-docker') {
|
||||||
|
sh "sleep 5"
|
||||||
sh "docker build -t ${imageName} -f ${dockerfilePath} ${buildContext}"
|
sh "docker build -t ${imageName} -f ${dockerfilePath} ${buildContext}"
|
||||||
echo "Docker image ${imageName} built"
|
echo "Docker image ${imageName} built"
|
||||||
sh "docker login http://${dockerRepo} -u ${nexusUser} -p ${nexusPass}"
|
sh "docker login http://${dockerRepo} -u ${nexusUser} -p ${nexusPass}"
|
||||||
|
|||||||
Reference in New Issue
Block a user