forked from applitools/tutorial-images-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting.Groovy
More file actions
30 lines (23 loc) · 863 Bytes
/
Copy pathtesting.Groovy
File metadata and controls
30 lines (23 loc) · 863 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
29
30
def testSubGroovyFile() {
echo "test sub groovy file"
}
def echo() {
echo "inside testing.groovy"
}
def checkDirectory() {
sh 'pwd'
sh 'ls -ltr'
}
def checkout() {
checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '9c2c4b85-d15b-4721-b0fe-c11be6030233', url: 'https://github.com/alex-man21/java_jenkins_pipeline']]]
}
def cleanInstall() {
sh 'mvn clean install'
}
def mvnTest() {
echo 'testing maven'
checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '9c2c4b85-d15b-4721-b0fe-c11be6030233', url: 'https://github.com/alex-man21/java_jenkins_pipeline']]]
sh 'mvn clean install'
sh 'mvn -Dtest=BasicDemo test'
}
return this