atlassian-json/json-backups/update.sh

104 lines
4.8 KiB
Bash
Raw Normal View History

2021-01-15 00:55:17 +03:00
#!/bin/bash
2021-01-17 02:36:23 +03:00
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
2021-01-15 00:55:17 +03:00
rm -rfv $PWD/current $PWD/archived $PWD/eap
mkdir -p $PWD/current $PWD/archived $PWD/eap
2021-01-17 02:20:03 +03:00
dotnet tool install -g dotnet-script
2021-01-15 00:55:17 +03:00
###################################################################################################
# Current links
###################################################################################################
# Bamboo
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/bamboo.json
2021-01-15 00:55:17 +03:00
# Bitbucket (Stash)
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/stash.json
2021-01-15 00:55:17 +03:00
2023-05-12 11:57:13 +03:00
# Bitbucket (Mesh)
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/mesh.json
2023-07-20 23:13:21 +03:00
# Clover
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/clover.json
2021-01-15 00:55:17 +03:00
# Confluence
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/confluence.json
2021-01-15 00:55:17 +03:00
# Crowd
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/crowd.json
2021-01-15 00:55:17 +03:00
# Crucible
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/crucible.json
2021-01-15 00:55:17 +03:00
# FishEye
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/fisheye.json
2021-01-15 00:55:17 +03:00
# Jira
2021-01-15 01:41:33 +03:00
#wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira.json
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira-core.json
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira-software.json
wget -c -nv --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira-servicedesk.json
2021-01-15 00:55:17 +03:00
2021-01-17 02:20:03 +03:00
# SourceTree
2021-01-17 02:55:06 +03:00
echo "-----------------------------------------------"
2021-01-17 02:46:18 +03:00
echo "Generating sourcetree.json for current release"
echo "-----------------------------------------------"
dotnet script $PWD/sourcetreeapp.csx
echo "-----------------------------------------------"
2021-01-17 02:36:23 +03:00
touch $PWD/current/sourcetree.json
2021-01-17 02:46:18 +03:00
dotnet script $PWD/sourcetreeapp.csx > $PWD/current/sourcetree.json
2021-01-15 00:55:17 +03:00
###################################################################################################
# Archived links
###################################################################################################
# Bamboo
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/bamboo.json
2021-01-15 00:55:17 +03:00
# Bitbucket (Stash)
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/stash.json
2021-01-15 00:55:17 +03:00
2023-05-12 11:57:13 +03:00
# Bitbucket (Mesh)
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/mesh.json
2023-07-20 23:13:21 +03:00
# Clover
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/clover.json
2021-01-15 00:55:17 +03:00
# Confluence
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/confluence.json
2021-01-15 00:55:17 +03:00
# Crowd
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/crowd.json
2021-01-15 00:55:17 +03:00
# Crucible
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/crucible.json
2021-01-15 00:55:17 +03:00
# FishEye
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/fisheye.json
2021-01-15 00:55:17 +03:00
# Jira
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira.json
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira-core.json
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira-software.json
wget -c -nv --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira-servicedesk.json
2021-01-15 00:55:17 +03:00
2021-01-17 02:20:03 +03:00
# SourceTree
2021-01-17 02:55:06 +03:00
echo "-----------------------------------------------"
2021-01-17 02:46:18 +03:00
echo "Generating sourcetree.json for arvhive release"
echo "-----------------------------------------------"
2021-01-17 02:36:23 +03:00
dotnet script $PWD/sourcetreeapp-archive.csx
2021-01-17 02:46:18 +03:00
echo "-----------------------------------------------"
2021-01-17 02:36:23 +03:00
touch $PWD/archived/sourcetree.json
dotnet script $PWD/sourcetreeapp-archive.csx > $PWD/archived/sourcetree.json
2021-01-15 00:55:17 +03:00
###################################################################################################
# EAP links
###################################################################################################
2021-01-15 01:41:33 +03:00
wget -c -nv --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/bamboo.json
wget -c -nv --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/confluence.json
wget -c -nv --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/jira.json
wget -c -nv --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/jira-servicedesk.json
wget -c -nv --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/stash.json