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