rebuild commit

This commit is contained in:
pumpurumer 2022-09-28 14:27:33 +04:00
parent 7a490e4599
commit 06e0b8efe1

15
Jenkinsfile vendored
View File

@ -18,4 +18,17 @@ node('Lithium'){
sh label: '', script: 'npm i'
sh label: '', script: 'npm run build'
}
}
}
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
}
}