Skip to content

Commit

Permalink
Working on build - added GITHUB_REF
Browse files Browse the repository at this point in the history
  • Loading branch information
redrezo committed Jul 23, 2020
1 parent 3d01600 commit e33711c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,10 @@ task notifyJenkins() {
def jenkinsToken = System.getenv("JENKINS_ACCESS_TOKEN")
def runId = System.getenv('GITHUB_RUN_ID')
def githubToken = System.getenv('GH_ACCESS_TOKEN')
def githubRef = System.getenv('GITHUB_REF')

def req = new Request.Builder()
.url("https://ci.eclipse.org/efxclipse/job/efxclipse_drift_build/buildWithParameters?token=$jenkinsToken&GITHUB_ACCESS_TOKEN=$githubToken&GITHUB_RUN_ID=$runId&GIT_SHA=${Versioning.gitSHA}")
.url("https://ci.eclipse.org/efxclipse/job/efxclipse_drift_build/buildWithParameters?token=$jenkinsToken&GITHUB_ACCESS_TOKEN=$githubToken&GITHUB_RUN_ID=$runId&GIT_SHA=${Versioning.gitSHA}&GITHUB_REF=$githubRef")
.build()
def res = client.newCall(req).execute()

Expand Down

0 comments on commit e33711c

Please sign in to comment.