Articles on: Jenkins Build Service

PHP Deployment on Windows AMD64

PHP Deployment on Windows AMD64

Category: programming_languages

Platform: windows_amd64

Tools Used: PHP

Description: Deploy a PHP application on Windows AMD64.

Code:

pipeline {
agent { label 'xlarge && php && windows && x86' }
stages {
stage('Install Composer') {
steps {
bat 'composer install'
}
}
stage('Build') {
steps {
bat 'php artisan build'
}
}
stage('Test') {
steps {
bat 'phpunit tests/'
}
}
stage('Deploy') {
steps {
bat 'php artisan deploy'
}
}
}
}


Expected Outcome: PHP application deployed successfully

Updated on: 31/10/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!