Check for changes occurring
This commit is contained in:
parent
522ec5c409
commit
2100c7a0f3
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ def getcomponentartifacts(info, String repofolder, String tempfolder) {
|
|||
def gitrelease(String releaserepo, String buildstamp, String dryrunpush) {
|
||||
summaryappend(" Git operations: ")
|
||||
dir(releaserepo) {
|
||||
def String precommitshacode = sh("git rev-parse --verify HEAD", returnStdout: true).trim()
|
||||
def String precommitshacode = sh(script: "git rev-parse --verify HEAD", returnStdout: true).trim()
|
||||
echo "Pre commit sha code: ${precommitshacode}"
|
||||
// Add anything new
|
||||
sh("git add .")
|
||||
|
|
@ -88,7 +88,7 @@ def gitrelease(String releaserepo, String buildstamp, String dryrunpush) {
|
|||
else {
|
||||
summaryappend("No-commit,")
|
||||
}
|
||||
def String postcommitshacode = sh("git rev-parse --verify HEAD", returnStdout: true).trim()
|
||||
def String postcommitshacode = sh(script: "git rev-parse --verify HEAD", returnStdout: true).trim()
|
||||
echo "Post commit sha code: ${precommitshacode}"
|
||||
// Tag with buildstamp
|
||||
sh("git tag ${buildstamp}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue