Skip to content

Commit

Permalink
add link to artifacts to job description
Browse files Browse the repository at this point in the history
We don't set JENKINS_URL, so we cannot use `${env.JENKINS_URL}` here,
but use an absolute path, which also works.

Signed-off-by: Florian Klink <[email protected]>
  • Loading branch information
flokli authored and henrirosten committed Jun 3, 2024
1 parent 181e85c commit eb8ad9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ghaf-build-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ pipeline {
post {
always {
sh "RCLONE_WEBDAV_UNIX_SOCKET_PATH=/run/rclone-jenkins-artifacts.sock RCLONE_WEBDAV_URL=http://localhost rclone sync -L 'ghaf/' :webdav:/${env.BUILD_TAG}/ --include '/result-*' --include '/result-*/**'"
script {
currentBuild.description = "<a href=\"/artifacts/${env.BUILD_TAG}/\" target=\"_blank\">📦 Artifacts</a>"
}
}
}
}
3 changes: 3 additions & 0 deletions ghaf-nightly-build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ pipeline {
post {
always {
sh "RCLONE_WEBDAV_UNIX_SOCKET_PATH=/run/rclone-jenkins-artifacts.sock RCLONE_WEBDAV_URL=http://localhost rclone sync -L 'ghaf/' :webdav:/${env.BUILD_TAG}/ --include '/result-*' --include '/result-*/**'"
script {
currentBuild.description = "<a href=\"/artifacts/${env.BUILD_TAG}/\" target=\"_blank\">📦 Artifacts</a>"
}
}
}
}

0 comments on commit eb8ad9a

Please sign in to comment.