forked from kliakos/sparkjava-war-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
28 lines (28 loc) · 774 Bytes
/
Jenkinsfile
File metadata and controls
28 lines (28 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pipeline {
agent { node { label "AM"}}
stages {
stage('primeros pasos') {
steps {
sh '''
echo "hola $param"
ls
pwd
'''
}
}
stage('Build') {
steps {
sh '''
docker run -t --rm --name my-maven-project -v "$(pwd)":/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn clean install
'''
}
}
stage('Deploy') {
steps {
sh '''
docker cp "/root/workspace/Alan_Folder/Alan_Pipeline/target/sparkjava-hello-world-1.0.war" fervent_black:"/usr/local/tomcat/webapps"
'''
}
}
}
}