Test again

This commit is contained in:
Jamie Curnow
2023-03-08 09:24:27 +10:00
parent 52165d8397
commit de72222e3d

50
Jenkinsfile vendored
View File

@@ -64,31 +64,35 @@ pipeline {
echo 'Checking Syntax ...' echo 'Checking Syntax ...'
sh 'docker pull nginxproxymanager/nginx-full:certbot-node' sh 'docker pull nginxproxymanager/nginx-full:certbot-node'
// See: https://github.com/yarnpkg/yarn/issues/3254 // See: https://github.com/yarnpkg/yarn/issues/3254
SHOUTPUT = sh ( script {
script: '''docker run --rm \\ SHOUTPUT = sh (
-v "$(pwd)/backend:/app" \\ script: '''docker run --rm \\
-v "$(pwd)/global:/app/global" \\ -v "$(pwd)/backend:/app" \\
-w /app \\ -v "$(pwd)/global:/app/global" \\
nginxproxymanager/nginx-full:certbot-node \\ -w /app \\
sh -c "yarn install && yarn eslint . && rm -rf node_modules" nginxproxymanager/nginx-full:certbot-node \\
''', sh -c "yarn install && yarn eslint . && rm -rf node_modules"
returnStdout: true ''',
).trim() returnStdout: true
).trim()
}
echo 'Docker Build ...' echo 'Docker Build ...'
SHOUTPUT = sh ( script {
script: '''docker build --pull --no-cache --squash --compress \\ SHOUTPUT = sh (
-t "${IMAGE}:ci-${BUILD_NUMBER}" \\ script: '''docker build --pull --no-cache --squash --compress \\
-f docker/Dockerfile \\ -t "${IMAGE}:ci-${BUILD_NUMBER}" \\
--build-arg TARGETPLATFORM=linux/amd64 \\ -f docker/Dockerfile \\
--build-arg BUILDPLATFORM=linux/amd64 \\ --build-arg TARGETPLATFORM=linux/amd64 \\
--build-arg BUILD_VERSION="${BUILD_VERSION}" \\ --build-arg BUILDPLATFORM=linux/amd64 \\
--build-arg BUILD_COMMIT="${BUILD_COMMIT}" \\ --build-arg BUILD_VERSION="${BUILD_VERSION}" \\
--build-arg BUILD_DATE="$(date '+%Y-%m-%d %T %Z')" \\ --build-arg BUILD_COMMIT="${BUILD_COMMIT}" \\
. --build-arg BUILD_DATE="$(date '+%Y-%m-%d %T %Z')" \\
''', .
returnStdout: true ''',
).trim() returnStdout: true
).trim()
}
} }
post { post {
failure { failure {