god help us all

This commit is contained in:
2025-05-26 15:35:45 +03:00
parent d200900a29
commit b6d7b54278

View File

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