diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..fff1d7a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent any + environment { + SSH_CRED = credentials('server-key') + } + stages { + + stage('Build') { + steps { + echo 'building app' + sh "pwd" + sh "ls" + sh "zip -r webapp.zip ." + sh "ls" + } + } + + stage('Deploy') { + steps { + echo 'Deploying app' + + } + } + + stage('Clean-Up') { + steps { + echo 'Remove existing files' + deleteDir() + } + } + } +} \ No newline at end of file