Fix project ID and duration formatting
- Updated main app project ID: 77257437 → 77618300 (towerops/towerops) - Fixed duration formatting to handle decimal seconds from GitLab API - Script now fetches correct current pipelines instead of old deleted project
This commit is contained in:
parent
de3c282825
commit
a98e1823f3
1 changed files with 4 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ get_project_info() {
|
|||
|
||||
case $project in
|
||||
app)
|
||||
PROJECT_ID="77257437" # Numeric ID for API calls
|
||||
PROJECT_ID="77618300" # Numeric ID for towerops/towerops
|
||||
PROJECT_PATH="towerops/towerops" # Path for web URLs
|
||||
PROJECT_NAME="Towerops"
|
||||
K8S_NAMESPACE="towerops"
|
||||
|
|
@ -172,6 +172,9 @@ format_duration() {
|
|||
return
|
||||
fi
|
||||
|
||||
# Convert to integer (GitLab returns decimals like 51.952868)
|
||||
seconds=${seconds%.*}
|
||||
|
||||
local mins=$((seconds / 60))
|
||||
local secs=$((seconds % 60))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue