environment test

This commit is contained in:
crusader 2023-02-01 23:24:38 +00:00
parent 79b6a9cf89
commit 400ad0fb7c

9
Jenkinsfile vendored
View File

@ -54,9 +54,6 @@ podTemplate(
echo "${projectDetails}" >> /etc/environment
gradle test
"""
def eevv = sh(returnStdout: true, script: "cat /etc/environment").trim()
sh "echo /etc/environment: $eevv"
}
}
catch (exc) {
@ -78,9 +75,9 @@ podTemplate(
usernameVariable: 'HARBOR_USER',
passwordVariable: 'HARBOR_PASSWORD']]) {
sh """
docker login -u "${HARBOR_USER}" -p "${HARBOR_PASSWORD}" ${dockerRegistryRrl}
docker build -t ${dockerRegistryRrl}/prototype/${PROJECT_NAME}:${PROJECT_VERSION} --build-arg PROJECT_NAME=${PROJECT_NAME} --build-arg PROJECT_VERSION=${PROJECT_VERSION} .
docker push ${dockerRegistryRrl}/prototype/${PROJECT_NAME}:${PROJECT_VERSION}
docker login -u "${HARBOR_USER}" -p "${HARBOR_PASSWORD}" ${dockerRegistryUrl}
docker build -t ${dockerRegistryUrl}/prototype/${PROJECT_NAME}:${PROJECT_VERSION} --build-arg PROJECT_NAME=${PROJECT_NAME} --build-arg PROJECT_VERSION=${PROJECT_VERSION} .
docker push ${dockerRegistryUrl}/prototype/${PROJECT_NAME}:${PROJECT_VERSION}
"""
}
}