// Definition for the https://jenkins-og.xarth.tv/cplat/twitchling job

pipeline {
    agent any
    options {
        disableConcurrentBuilds()
        timeout(time: 15, unit: 'MINUTES')
        ansiColor('xterm')
        timestamps()
    }
    stages {
        stage('Initialize') {
            steps {
                sh('printenv | sort')
            }
        }
        stage('Test') {
            agent {
                docker {
                    image 'docker.internal.justin.tv/awsi/bionic/go1.16.6'
                }
            }
            steps {
                sh 'go test ./...'
            }
        }
    }
}
