summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2023-03-27 22:17:58 +0300
committerAndrew Dolgov <noreply@fakecake.org>2023-03-27 22:17:58 +0300
commit204c4bf654948d6620b09c8975e716435c82d5fc (patch)
treed040d9c948665b20e1201d0c0cfac63d16220731
parentcf425fe5c7d5543a82b7a66f93159fec0c5be617 (diff)
downloadthe-epube-android-204c4bf654948d6620b09c8975e716435c82d5fc.tar.gz
the-epube-android-204c4bf654948d6620b09c8975e716435c82d5fc.tar.xz
jenkins no more
-rw-r--r--Jenkinsfile58
1 files changed, 0 insertions, 58 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
deleted file mode 100644
index 6398972..0000000
--- a/Jenkinsfile
+++ /dev/null
@@ -1,58 +0,0 @@
-pipeline {
-    agent any
-
-    options {
-        buildDiscarder(logRotator(numToKeepStr: '5'))
-    }
-
-    environment {
-        deploy_key = "srv.tt-rss.org"
-        deploy_host = "tt-rss.fakecake.org"
-    }
-
-    stages {
-        stage('build') {
-            steps {
-                withCredentials([string(credentialsId: 'fdroid.jks', variable: 'FDROID_PASSWORD')]) {
-                sh("bash ./gradlew assembleFdroid " +
-                    "-PFDROID_STORE_FILE=/var/jenkins_home/android-jks/fdroid.jks " +
-                    "-PFDROID_STORE_PASSWORD=$FDROID_PASSWORD " +
-                    "-PFDROID_KEY_ALIAS=fdroid " +
-                    "-PFDROID_KEY_PASSWORD=$FDROID_PASSWORD")
-                }
-            }
-        }
-        stage('archive') {
-            steps {
-                archiveArtifacts '**/*.apk'
-            }
-        }
-        stage('deploy') {
-            when {
-               branch 'master'
-            }
-            steps {
-                sshagent(credentials: ["${deploy_key}"]) {
-                    script {
-                        def files = findFiles(glob: '**/*.apk')
-
-                        for (String file : files) {
-                            sh("scp -oStrictHostKeyChecking=no ${file} ${deploy_host}:fdroid/repo/")
-                        }
-
-                        sh("ssh -oStrictHostKeyChecking=no ${deploy_host} sudo /usr/local/sbin/fdroid-update-repo")
-                    }
-                }
-            }
-        }
-    }
-    post {
-        failure {
-             mail body: "Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER}<br> build URL: ${env.BUILD_URL}",
-                charset: 'UTF-8', from: 'jenkins@fakecake.org',
-                mimeType: 'text/html',
-                subject: "Build failed: ${env.JOB_NAME}",
-                to: "fox@fakecake.org";
-         }
-    }
-}