Add missing steps block.
This commit is contained in:
parent
32d66c6a7e
commit
acb2f7067d
|
@ -36,7 +36,9 @@ echo "Use local repo at ${maven_local_repo_path}"
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
// see https://jenkins.io/doc/book/pipeline/syntax/#agent
|
// see https://jenkins.io/doc/book/pipeline/syntax/#agent
|
||||||
agent { label 'pipeline-agent' }
|
agent {
|
||||||
|
label 'pipeline-agent'
|
||||||
|
}
|
||||||
|
|
||||||
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
|
||||||
environment {
|
environment {
|
||||||
|
@ -54,11 +56,13 @@ pipeline {
|
||||||
//see https://jenkins.io/doc/book/pipeline/syntax/#stages
|
//see https://jenkins.io/doc/book/pipeline/syntax/#stages
|
||||||
stages {
|
stages {
|
||||||
stage('clean up before starting') {
|
stage('clean up before starting') {
|
||||||
script {
|
steps {
|
||||||
echo "Create a fresh local repository"
|
script {
|
||||||
rm -rf $MAVEN_LOCAL_REPO
|
echo "Create a fresh local repository"
|
||||||
mkdir -p $MAVEN_LOCAL_REPO
|
rm -rf $MAVEN_LOCAL_REPO
|
||||||
echo "Done with local repository"
|
mkdir -p $MAVEN_LOCAL_REPO
|
||||||
|
echo "Done with local repository"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build core components') {
|
stage('build core components') {
|
||||||
|
|
Loading…
Reference in New Issue