Jenkinsfile 529 B

12345678910111213141516171819202122
  1. pipeline {
  2. agent {
  3. dockerContainer {
  4. image 'ubuntu:22.04'
  5. }
  6. }
  7. stages {
  8. stage('Clone') {
  9. steps {
  10. git branch: 'main',
  11. //credentialsId: '9174b603-02b6-46bd-970d-64569bab977a',
  12. url: 'https://github.com/buddy-works/laravel-first-steps.git'
  13. }
  14. }
  15. stage('Build') {
  16. steps {
  17. sh 'docker build . -t dockerfile'
  18. }
  19. }
  20. }
  21. }