diff --git a/Jenkinsfile b/Jenkinsfile index e18826d..a6d93f3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,11 @@ pipeline { agent any stages { + stage('build'){ + steps{ + sh './build.sh' + } + } stage('deploy'){ steps{ sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/resume', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..c85b161 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +COMMIT="$(git rev-parse HEAD)" +sed -i "s/css?=\w*/css?=${COMMIT}/g" index.html diff --git a/index.html b/index.html index 6d9b921..c75f76a 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@