refs TG-3: added autoReleaswe
This commit is contained in:
Vendored
+9
-4
@@ -10,7 +10,6 @@ pipeline {
|
||||
TAIGA_URL = 'https://taiga.grigowashere.ru'
|
||||
GITEA_OWNER = 'Grigo'
|
||||
GITEA_REPO = 'TestingAndroidBuild'
|
||||
|
||||
}
|
||||
|
||||
stages {
|
||||
@@ -37,8 +36,17 @@ pipeline {
|
||||
writeFile file: 'gitea-release.sh', text: '''
|
||||
#!/bin/bash
|
||||
|
||||
# Define the APK file path
|
||||
apkPath="build/outputs/apk/debug/app-debug.apk"
|
||||
|
||||
# Check if the APK exists
|
||||
if [ ! -f "$apkPath" ]; then
|
||||
echo "APK file does not exist at $apkPath"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "APK file exists: $apkPath"
|
||||
|
||||
headers="Authorization: token $GITEA_TOKEN"
|
||||
|
||||
# Create the release on Gitea
|
||||
@@ -77,8 +85,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
post {
|
||||
@@ -104,7 +110,6 @@ pipeline {
|
||||
import json
|
||||
import os
|
||||
import urllib.request
|
||||
import urllib.error
|
||||
|
||||
taiga_url = os.environ["TAIGA_URL"]
|
||||
project_id = os.environ["TAIGA_PROJECT_ID"]
|
||||
|
||||
Reference in New Issue
Block a user