This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch test-build in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/test-build by this push: new 232af6257 Uses temp workspace folder for build 232af6257 is described below commit 232af625753b7b6e98a29e8c44e81dd4a6543a11 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Thu Apr 7 08:16:09 2022 +0200 Uses temp workspace folder for build --- Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cb75d1e9b..fcb47cd92 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,20 +9,18 @@ pipeline { skipStagesAfterUnstable() } stages { - stage('Build a staged websites') { + stage('Build a staged website') { agent { label 'git-websites' } environment { - RUBY_PATH="${env.HOME}/.rvm" - GEM_HOME="${env.RUBY_PATH}/gems" + RUBY_PATH="${env.WORKSPACE_TMP}/.rvm" + GEM_HOME="${RUBY_PATH}/gems" PATH="${GEM_HOME}/bin:${env.PATH}" } steps { sh """ - echo Generiting a new version of website - mkdir -p target/content - + echo Generiting a new version of website curl -sSL https://get.rvm.io | bash -s -- --path ${RUBY_PATH} mkdir -p ${GEM_HOME} @@ -55,6 +53,11 @@ pipeline { """ } } + stage('Comment on PR') { + if (env.CHANGE_ID) { + pullRequest.comment("Staged site is ready at https://struts.staged.apache.org/") + } + } } post { // If this build failed, send an email to the list.