rebuild commit
This commit is contained in:
parent
7a490e4599
commit
06e0b8efe1
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user