- Create a new Job or Pipeline.
- Go to "Build" tab.
- Add build step > Execute shell
- Paste code in the script.sh to "Command" area.
Write all Artisan command in the GIT commit message with --artisan-
prefix.
Example:
$ git commit -m "jenkins artisan test --artisan-cache:clear --artisan-migrate --artisan-db:seed"
Jenkins build console log after example git commit message;