mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Delete Jenkinsfile
This commit is contained in:
parent
34439b0022
commit
397c49810f
41
Jenkinsfile
vendored
41
Jenkinsfile
vendored
@ -1,41 +0,0 @@
|
|||||||
#!/usr/bin/groovy
|
|
||||||
@Library('github.com/fabric8io/fabric8-pipeline-library@v2.2.311')
|
|
||||||
def utils = new io.fabric8.Utils()
|
|
||||||
clientsNode{
|
|
||||||
def envStage = utils.environmentNamespace('staging')
|
|
||||||
def envProd = utils.environmentNamespace('production')
|
|
||||||
def newVersion = ''
|
|
||||||
|
|
||||||
git 'https://github.com/Alfresco/alfresco-ng2-components.git'
|
|
||||||
|
|
||||||
stage 'Canary release'
|
|
||||||
echo 'NOTE: running pipelines for the first time will take longer as build and base docker images are pulled onto the node'
|
|
||||||
if (!fileExists ('Dockerfile')) {
|
|
||||||
writeFile file: 'Dockerfile', text: 'FROM node:5.3-onbuild'
|
|
||||||
}
|
|
||||||
|
|
||||||
newVersion = performCanaryRelease {}
|
|
||||||
|
|
||||||
def rc = getKubernetesJson {
|
|
||||||
port = 8080
|
|
||||||
label = 'node'
|
|
||||||
icon = 'https://cdn.rawgit.com/fabric8io/fabric8/dc05040/website/src/images/logos/nodejs.svg'
|
|
||||||
version = newVersion
|
|
||||||
imageName = clusterImageName
|
|
||||||
}
|
|
||||||
|
|
||||||
stage 'Rollout Staging'
|
|
||||||
kubernetesApply(file: rc, environment: envStage)
|
|
||||||
|
|
||||||
stage 'Approve'
|
|
||||||
approve{
|
|
||||||
room = null
|
|
||||||
version = canaryVersion
|
|
||||||
console = fabric8Console
|
|
||||||
environment = envStage
|
|
||||||
}
|
|
||||||
|
|
||||||
stage 'Rollout Production'
|
|
||||||
kubernetesApply(file: rc, environment: envProd)
|
|
||||||
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user