pipeline {
  agent none
  stages {
    stage('Build') {
      parallel {
        stage('FedoraRawhide') {
          agent { label 'fedora-rawhide-x86_64' }
          stages {
            stage('autoreconf') {
              steps {
                sh 'autoreconf --force --install'
              }
            }
            stage('configure') {
              steps {
                sh './configure'
              }
            }
            stage('make') {
              steps {
                sh 'make'
              }
            }
            stage('make dist') {
              steps {
                sh 'make dist'
              }
            }
            stage('rpmbuild') {
              steps {
                sh 'rpmbuild -tb redwax-signtext-*.tar.bz2'
              }
            }
          }
        }

      }
    }
  }
}