diff --git a/Jenkinsfile b/Jenkinsfile index 6df12ce..91e0e12 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { string( name: 'post_title', description: 'Used for filename and post.sh name. The space will be replaced by `-` inv the file name.', - defaultValue: '' + defaultValue: "${env.GIT_COMMIT} _ hello" ) text( name: 'post_body', @@ -61,19 +61,19 @@ pipeline { stages { stage('Set up env') { - when { - branch 'master' - } + //when { + // branch 'master' + // } steps { script { - env.SKIP_AUTO_RUN = params.post_title == '' + env.SKIP_AUTO_RUN = !currentBuild.rawBuild.getCauses()[0].toString().contains('UserIdCause') } } } stage('Set up git env') { when { - branch 'master' + // branch 'master' environment name: 'SKIP_AUTO_RUN', value: 'false' } steps { @@ -90,7 +90,7 @@ pipeline { stage('Prepare post') { when { - branch 'master' + //branch 'master' environment name: 'SKIP_AUTO_RUN', value: 'false' } steps { @@ -127,7 +127,7 @@ pipeline { stage('Create post') { when { - branch 'master' + //branch 'master' environment name: 'SKIP_AUTO_RUN', value: 'false' } steps { @@ -145,6 +145,7 @@ pipeline { } } +/* stage('Post reminders') { when { branch 'master' @@ -156,6 +157,8 @@ pipeline { } } } + */ + } post {