summaryrefslogtreecommitdiff
path: root/Jenkinsfile
blob: 440542f4b145d71f8585a44180a7ac5a62a4817a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pipeline {
    agent { dockerContainer { image 'archlinux:latest' } }
    triggers { cron('H H */7 * *') }

    environment {
        SECRET_SSH = credentials('adonis-ssh-key')
        SECRET_GPG = credentials('toufy-gpg-key')
        SECRET_GPG_PASS = credentials('toufy-gpg-passwd')
    }

    stages {
        stage('checkout repo') {
            steps {
                checkout scm
            }
        }

        stage('build') {
            steps {
                sh '''
                set -euo pipefail
                chmod 700 ./taur.sh
                ./taur.sh
                '''
            }
        }
    }

    post {
        always {
            echo 'pipeline finished'
        }
    }
}