Jenkinsfile 624 B

1234567891011121314151617181920212223242526272829
  1. pipeline {
  2. agent none
  3. stages {
  4. stage('pullCode'){
  5. steps{
  6. echo 'This is a pullCode step'
  7. checkout scm
  8. }
  9. }
  10. stage('Build') {
  11. steps {
  12. echo 'Building..'
  13. sh '~/tools/apache-maven-3.6.3/bin/mvn clean install -Dmaven.test.skip=true'
  14. sh 'docker build'
  15. }
  16. }
  17. stage('Test') {
  18. steps {
  19. echo 'Testing..'
  20. }
  21. }
  22. stage('Deploy') {
  23. steps {
  24. echo 'Deploying....'
  25. }
  26. }
  27. }
  28. }