You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

28 lines
762 B

pipeline {
agent any
environment {
GIT_URL = 'https://github.com/username/repository.git'
BRANCH = 'main'
DEST_DIR = '/path/to/your/deployment/folder'
}
stages {
stage('Checkout Code') {
steps {
echo "Code has been successfully pulled and copied to ${DEST_DIR}"
}
}
stage('Copy Code to Server Directory') {
steps {
echo "Code has been successfully pulled and copied to ${DEST_DIR}"
}
}
}
post {
success {
echo "Code has been successfully pulled and copied to ${DEST_DIR}"
}
failure {
echo "Failed to pull code from the repository."
}
}
}