2023. 10. 19. 15:31ㆍdocker
참고 사이트
https://www.jenkins.io/blog/2017/02/07/declarative-maven-project/
Declarative Pipeline for Maven Projects
The next thing we’ll add in this Pipeline is a tools section to let us use Maven. The tools section is one of several sections we can add under pipeline, which affect the configuration of the rest of the Pipeline. (We’ll look at the others, including a
www.jenkins.io
script
pipeline {
agent any
tools {
maven 'maven3.9.5'
}
stages {
stage('github clone') {
steps {
git branch: 'main', url: 'https://github.com/manupul/hello'
}
}
stage('build') {
steps {
sh '''
echo build start
mvn clean compile package -DskipTests=true
'''
}
}
}
}
windows tomcat에 app 배포
docker-server2에 image 빌드
트러블 슈팅
'docker' 카테고리의 다른 글
pipe-line 연습문제 (0) | 2023.10.19 |
---|---|
pipeline-view (0) | 2023.10.19 |
Docker hub를 이용한 container 생성 (0) | 2023.10.18 |
ansible 내 tomcat SCM (0) | 2023.10.18 |
Ansible-server에 tomcat 생성 (1) | 2023.10.17 |