Skip to content

Commit

Permalink
Add slash to CI integration http request (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkent authored Mar 22, 2024
1 parent a132134 commit 0fe9c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _plugins/rosindex_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def map_build_result_to_icon(build_result)

def get_ci_data(distro, package_name, repo_name)
ci_data = Hash.new
manifest_url = "#{DEFAULT_LANGUAGE_PREFIX}/#{distro}/api/#{package_name}/manifest.yaml"
manifest_url = "/#{DEFAULT_LANGUAGE_PREFIX}/#{distro}/api/#{package_name}/manifest.yaml"
manifest_response = Net::HTTP.get_response('docs.ros.org', manifest_url)
if manifest_response.code != '200'
ci_data['tooltip'] = 'No CI information available for this package.'
Expand All @@ -249,7 +249,7 @@ def get_ci_data(distro, package_name, repo_name)
end
ci_data['job_url'] = manifest_yaml['devel_jobs'][0]
# get additional test information if available
results_url = "#{DEFAULT_LANGUAGE_PREFIX}/#{distro}/devel_jobs/#{repo_name}/results.yaml"
results_url = "/#{DEFAULT_LANGUAGE_PREFIX}/#{distro}/devel_jobs/#{repo_name}/results.yaml"
results_response = Net::HTTP.get_response('docs.ros.org', results_url)
if results_response.code != '200'
ci_data['tooltip'] = "Latest build information: " + ci_data['timestamp'] + "\n" \
Expand Down

0 comments on commit 0fe9c11

Please sign in to comment.