Skip to content

Commit

Permalink
fix: serve all static files previously accessible from stats.jenkins.…
Browse files Browse the repository at this point in the history
…io (#168)
  • Loading branch information
lemeurherveCB authored Sep 13, 2024
1 parent 849bad7 commit 936d4fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ dist-ssr

# infra-statistics
src/data/infra-statistics
public/plugin-installation-trend
public/jenkins-stats
public/pluginversions

# bundle analyzer
bundle-analysis.html
bundle-analysis.html
5 changes: 5 additions & 0 deletions retrieve-infra-statistics-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@ unzip -q -o infra-statistics-gh-pages.zip
mv infra-statistics-gh-pages "${INFRASTATISTICS_LOCATION}"
rm infra-statistics-gh-pages.zip

# Copy folders over public folder to serve their static files
for dir in jenkins-stats plugin-installation-trend pluginversions; do
cp -r "${INFRASTATISTICS_LOCATION}/${dir}" public/
done

# Fetch update-center.actual.json
curl --silent --fail --output "${INFRASTATISTICS_LOCATION}/update-center.actual.json" --location "https://updates.jenkins.io/current/update-center.actual.json"

0 comments on commit 936d4fd

Please sign in to comment.