diff --git a/Jenkinsfile b/Jenkinsfile index 2caa9ea..cb6d1c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,4 +18,17 @@ node('Lithium'){ sh label: '', script: 'npm i' sh label: '', script: 'npm run build' } -} \ No newline at end of file +} +def cmd(command) { + // при запуске Jenkins не в режиме UTF-8 нужно написать chcp 1251 вместо chcp 65001 + if (isUnix()) { sh "${command}" } else { bat "chcp 65001\n${command}"} +} + +private boolean lastCommitIsBumpCommit() { + lastCommit = bat([script: 'git log -1', returnStdout: true]) + if (lastCommit.contains("Author: jenkins")) { + return true + } else { + return false + } +}