Cleaning up

This commit is contained in:
Jesse James Isler 2022-06-09 10:06:50 +02:00
parent da39a7fc5f
commit d25b04d44a

80
Jenkinsfile vendored
View File

@ -1,22 +1,37 @@
//pipeline {
// agent { dockerfile true }
// stages {
// stage('Test') {
// steps {
// echo "Build has worked!"
// }
// }
// }
//}
/*
//Original Pipeline
pipeline {
agent { dockerfile true }
stages {
stage('Test') {
steps {
echo "Build has worked!"
}
}
}
}
*/
//New Pipeline
pipeline {
agent none
// tools {
// nodejs "815Node"
// }
// environment {
// registry = 'dockerhubusername/dockerhubusername'
// registryCredential = 'dockerhubcredentials'
// }
/*
//For some reason, this scrashes Jenkins
tools {
nodejs "815Node"
}
*/
/* We won't be Pushing to Dockerhub YET
environment {
registry = 'dockerhubusername/dockerhubusername'
registryCredential = 'dockerhubcredentials'
}
*/
stages {
stage('INSTALL PACKAGES') {
agent any
@ -54,19 +69,22 @@ pipeline {
}
}
}
// stage("DEPLOY DOCKER") {
// steps {
// script {
// docker.withRegistry('', registryCredential) {
// dockerImageBuild.push()
// }
// }
// }
// }
// stage("DEPLOY & ACTIVATE") {
// steps {
// echo 'this part will differ depending on setup'
// }
// }
/*
// Again, no pushing to Docker Hub
stage("DEPLOY DOCKER") {
steps {
script {
docker.withRegistry('', registryCredential) {
dockerImageBuild.push()
}
}
}
}
stage("DEPLOY & ACTIVATE") {
steps {
echo 'this part will differ depending on setup'
}
}
}
}