add website.
Some checks failed
internetmastercz/test/pipeline/head There was a failure building this commit

This commit is contained in:
2021-10-20 02:39:36 +02:00
parent 4483c2a05a
commit 58653e89e7
34 changed files with 1634 additions and 18 deletions

20
Jenkinsfile vendored
View File

@@ -1,18 +1,17 @@
pipeline {
agent any
stages {
// stage('Init') {
// steps {
// sh 'node --version'
// }
// }
stage('Installation') {
steps {
echo "start Installation"
echo "finish Installation"
}
}
stage('Build') {
steps {
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
echo 'Building..'
sh 'ls -la /var/lib'
sh 'whoami'
sh 'docker info'
// sh 'docker build -t registry.proxyq.co/hellsos/website .'
}
}
stage('Test') {
@@ -23,8 +22,9 @@ pipeline {
}
}
stage('Deploy') {
steps {
echo "Deploying.... ${env.ENV_REGISTRY_URL} - ${env.ENV_REGISTRY_USER}"
docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') {
def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}")
customImage.push()
}
}
}