You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
950 B

5 years ago
  1. pipeline {
  2. agent any
  3. // tools {
  4. // Install the Maven version configured as "M3" and add it to the path.
  5. //maven "M3"
  6. // }
  7. stages {
  8. stage('Build') {
  9. steps {
  10. // Get some code from a GitHub repository
  11. git 'https://gogs.informatik.hs-fulda.de/Continous_Integration_in_der_Praxis/colaboration-training.git'
  12. // Run Maven on a Unix agent.
  13. sh "mvn -Dmaven.test.failure.ignore=true clean package"
  14. // To run Maven on a Windows agent, use
  15. // bat "mvn -Dmaven.test.failure.ignore=true clean package"
  16. }
  17. post {
  18. // If Maven was able to run the tests, even if some of the test
  19. // failed, record the test results and archive the jar file.
  20. success {
  21. // junit '**/target/surefire-reports/TEST-*.xml'
  22. archiveArtifacts 'target/*.jar'
  23. }
  24. }
  25. }
  26. }
  27. }