diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..ddd23ad44e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,41 @@ +#!/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) + +} diff --git a/fabric8.yml b/fabric8.yml new file mode 100644 index 0000000000..a4c33210d1 --- /dev/null +++ b/fabric8.yml @@ -0,0 +1,11 @@ +--- +buildName: "adf2" +links: + Git: "https://github.com/Alfresco/alfresco-ng2-components.git" + Job: "http://192.168.64.3:31752/job/adf2" + Production: "http://10.0.0.114:80/kubernetes/pods?namespace=default-production" + Staging: "http://10.0.0.114:80/kubernetes/pods?namespace=default-staging" +environments: + Staging: "default-staging" + Production: "default-production" +useLocalFlow: true diff --git a/ng2-components/ng2-activiti-processlist/README.md b/ng2-components/ng2-activiti-processlist/README.md index 72c1c0d6e5..c959a8a9fc 100644 --- a/ng2-components/ng2-activiti-processlist/README.md +++ b/ng2-components/ng2-activiti-processlist/README.md @@ -114,7 +114,7 @@ Follow the 3 steps below: This component renders a list containing all the process instances matched by the parameters specified. ```html - + ``` Usage example of this component :