Aa step by step process of Jenkins Pipeline creation and automation. Continuous deployment of PHP application.
Writing Linux shell script form scratch.
Stay tuned & Subscribe for more Videos.
Pipeline Script for your reference:
pipeline{
agent any
environment{
staging_server="13.235.33.196"
}
stages{
stage('Deploy to Remote'){
steps{
sh '''
for fileName in `find ${WORKSPACE} -type f -mmin -10 | grep -v ".git" | grep -v "Jenkinsfile"`
do
fil=$(echo ${fileName} | sed 's/'"${JOB_NAME}"'/ /' | awk {'print $2'})
scp -r ${WORKSPACE}${fil} root@${staging_server}:/var/www/html/mbaquatech${fil}
done
'''
}
}
}
}
GitHub Repo URL: https://github.com/ranjit4github/My-J...
Watch video Deploy PHP application using Jenkins Pipeline | Continuous Deployment online without registration, duration hours minute second in high quality. This video was added by user Ranjit Swain 23 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16,252 once and liked it 198 people.