Ticket #1791 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Do not use curl inside Jenkins jobs to trigger other Jenkins jobs

Reported by: dscho Owned by: dscho
Priority: major Milestone: imagej2-b7-ndim-data
Component: Server Admin Version:
Severity: serious Keywords:
Cc: curtis Blocked By:
Blocking: #1608

Description

Using curl to trigger Jenkins jobs requires the tokens to be passed as part of the URL. This URL shows up in the publicly visible console log, defeating the purpose of a secret token.

Change History

comment:1 Changed 6 years ago by dscho

The command-line program jenkins-cli is installed on the Jenkins server. All that was required was to add the public SSH key from ~/.ssh/id_rsa.pub to  http://jenkins.imagej.net/user/Jenkins/configure.

Now, the ImageJ job uses jenkins-cli build ImageJ-launcher -p branch=master to trigger building the launcher *iff* the respective sources have changes.

comment:2 Changed 6 years ago by dscho

  • Status changed from new to closed
  • Resolution set to fixed

Inspecting the output of grep -w curl jobs/*/config.xml convinced me that ImageJ triggering ImageJ-launcher was the only problem to be addressed in this issue.

Note: See TracTickets for help on using tickets.