Skip to content

Commit

Permalink
Task techjoomla#8 chore: Implement the build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Amol Thite committed Aug 9, 2019
1 parent 5097868 commit 4d80916
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions build/pipelines/nightly.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,25 @@ pipeline {
}
}

// // Get commit id
// // @TODO - needs to define shortGitCommit at global level
def gitCommit = ''
def shortGitCommit = ''

// // For branch based build - we need the revision number of tag checked out,
// Custom DIR
dir('scm') {
gitCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim().take(8)
shortGitCommit = gitCommit[0..7]
echo gitCommit
echo shortGitCommit
}

def packageName = "com_cluster_v" + version + "_" + shortGitCommit + ".zip"
// Now we are good to create zip for component
sh('mv builds/com_cluster.zip ../')
sh("mv builds/com_cluster.zip $packageName")

archiveArtifacts "com_cluster.zip"
archiveArtifacts packageName

}
}
Expand Down

0 comments on commit 4d80916

Please sign in to comment.