Skip to content
Open

Qa #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent any

tools {
maven "MAVEN"
}

stages {
stage('Initialize'){
steps{
echo "PATH = ${M2_HOME}/bin:${PATH}"
echo "M2_HOME = /opt/maven"
}
}
stage('Build') {
steps {
dir("/var/lib/jenkins/workspace/Maven-Jenkins222/my-app/my-app") {
sh 'mvn -B -DskipTests clean package'
}

}
}
}
post {
always {
junit(
allowEmptyResults: true,
testResults: '*/test-reports/.xml'
)
}
}
}
1 change: 1 addition & 0 deletions eaxmple.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sampleprojecfffhhht
1 change: 1 addition & 0 deletions echo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is a sample text file
File renamed without changes.
13 changes: 13 additions & 0 deletions my-app/my-app/src/main/java/com/mycompany/app/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.mycompany.app;

/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
20 changes: 20 additions & 0 deletions my-app/my-app/src/test/java/com/mycompany/app/AppTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.mycompany.app;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

/**
* Unit test for simple App.
*/
public class AppTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
}
1 change: 1 addition & 0 deletions sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uhhh:wq:
2 changes: 2 additions & 0 deletions testcase1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

hhfhfhfh
1 change: 1 addition & 0 deletions testcase2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hhhhh