pipeline {
    agent any
    tools{ 
        jdk "BellSoft JDK11"
    }
    stages {
        stage('Cloning') {
            steps {
                git credentialsId: 'jenkins_gitea', url: 'https://git.emdev.ru/entaxy/entaxy-cave'
            }
        }
        stage('Build & Publish artifacts') {
           steps {
              sh 'mvn clean deploy'
           }
       }
    }
}
