oopsie B|

This commit is contained in:
2025-05-26 17:10:57 +03:00
parent 524fe2ee2b
commit d8e979d64b

View File

@@ -1,7 +1,7 @@
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 "dockerd &" //sh "dockerd &"
echo "Started Docker daemon" //echo "Started Docker daemon"
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}"