pipeline {
    agent { label "adroit_asrosen"}
    options {
	buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')
    }
    stages {
	stage('Hello') {
	    steps {
		sh '''
                java -version
                '''
		echo "hello"
	    }
	}
	stage ('for the fix branch') {
	    when {
		branch "fix*"
	    }
	    steps {
		sh '''
            cat README.md
        '''
	    }
        }
	stage ('For the PR') {
		when {
			branch 'PR-*'
		}
		steps {
			echo 'this is only for the PRs'
		}
	}
    }
}
