Issue
So they gave me a Jenkins buildserver and a Junit test with an empty method just to see if we can run the test. Now those are the only 2 things i got, i'm confused on how i'm supposed to test this junit. Whenever i search something about it almost the only thing that pops up is Maven where you have to make a project, next you upload your project to Jenkins...
Since I don't have a project only a junit test, is there a way to test this file by itself?
Edit: I appearently i selected the wrong download for the files and only downloaded 1 instead of the entire project. The project is a Maven project it seems.
Solution
I hope your Jenkinsfile
contains all other script from cloning repo to setting up other dependencies. After checking-out the repo, run mvn test
Jenkinsfile
node {
stage("Test") {
sh "mvn test"
}
}
Answered By - Suryavel TR