First Blood

This commit is contained in:
2025-05-26 15:57:04 +03:00
parent fa8c7c38ea
commit 524fe2ee2b

View File

@@ -1,5 +1,7 @@
def call(String dockerRepo, String imageName, String dockerfilePath, String buildContext, String nexusUser, String nexusPass) {
container('custom-docker') {
sh "dockerd &"
echo "Started Docker daemon"
sh "docker build -t ${imageName} -f ${dockerfilePath} ${buildContext}"
echo "Docker image ${imageName} built"
sh "docker login http://${dockerRepo} -u ${nexusUser} -p ${nexusPass}"