mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-12 20:09:16 +00:00
Test PR comment
This commit is contained in:
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -64,16 +64,20 @@ 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
|
||||||
sh '''docker run --rm \\
|
SHOUTPUT = sh (
|
||||||
|
script: '''docker run --rm \\
|
||||||
-v "$(pwd)/backend:/app" \\
|
-v "$(pwd)/backend:/app" \\
|
||||||
-v "$(pwd)/global:/app/global" \\
|
-v "$(pwd)/global:/app/global" \\
|
||||||
-w /app \\
|
-w /app \\
|
||||||
nginxproxymanager/nginx-full:certbot-node \\
|
nginxproxymanager/nginx-full:certbot-node \\
|
||||||
sh -c "yarn install && yarn eslint . && rm -rf node_modules"
|
sh -c "yarn install && yarn eslint . && rm -rf node_modules"
|
||||||
'''
|
''',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
|
||||||
echo 'Docker Build ...'
|
echo 'Docker Build ...'
|
||||||
sh '''docker build --pull --no-cache --squash --compress \\
|
SHOUTPUT = sh (
|
||||||
|
script: '''docker build --pull --no-cache --squash --compress \\
|
||||||
-t "${IMAGE}:ci-${BUILD_NUMBER}" \\
|
-t "${IMAGE}:ci-${BUILD_NUMBER}" \\
|
||||||
-f docker/Dockerfile \\
|
-f docker/Dockerfile \\
|
||||||
--build-arg TARGETPLATFORM=linux/amd64 \\
|
--build-arg TARGETPLATFORM=linux/amd64 \\
|
||||||
@@ -82,7 +86,18 @@ pipeline {
|
|||||||
--build-arg BUILD_COMMIT="${BUILD_COMMIT}" \\
|
--build-arg BUILD_COMMIT="${BUILD_COMMIT}" \\
|
||||||
--build-arg BUILD_DATE="$(date '+%Y-%m-%d %T %Z')" \\
|
--build-arg BUILD_DATE="$(date '+%Y-%m-%d %T %Z')" \\
|
||||||
.
|
.
|
||||||
'''
|
''',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
failure {
|
||||||
|
script {
|
||||||
|
if (env.BRANCH_NAME.startsWith('PR') && SHOUTPUT?.trim()) {
|
||||||
|
def comment = pullRequest.comment("CI Error:\n\n```\n${SHOUTPUT}\n```")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Integration Tests Sqlite') {
|
stage('Integration Tests Sqlite') {
|
||||||
|
Reference in New Issue
Block a user