Commit e679843d authored by Christopher Guindon's avatar Christopher Guindon
Browse files
parent df33f354
---
name: Bug report
about: Create a report to help us improve
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
---
name: Feature request
about: Suggest an idea for this project
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
/node_modules/
/static/images/vendor/
/static/fonts/vendor/
/static/js/
/static/css/
/public/
/layouts/robots.txt
.idea/**
**/.DS_Store
/.project
scrap/*
.DS_Store
/bower_components/
/node_modules/
\ No newline at end of file
/data/eclipsefdn_projects.yaml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/lib/jquery"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/bootnova/assets/js"/>
<classpathentry excluding="**/bower_components/*|bootstrap/js/|**/node_modules/*|**/*.min.js|jquery/|bootstrap/" kind="src" path="eclipse.org-common/themes/bootnova/components"/>
<classpathentry excluding="js/|**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/bootnova/components/bootstrap"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/bootnova/components/bootstrap/js"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/bootnova/components/jquery"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/nova"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/Phoenix"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|src/javascript/|**/*.min.js|public/javascript/" kind="src" path="eclipse.org-common/themes/solstice"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/solstice/public/javascript"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/themes/solstice/src/javascript"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.3.1/connection"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.3.1/dom"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.3.1/event"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.3.1/logger"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.3.1/yahoo"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/assets"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/animation"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/autocomplete"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/button"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/calendar"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/carousel"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/charts"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/colorpicker"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/connection"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/container"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/cookie"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/datasource"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/datatable"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/dom"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/dragdrop"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/editor"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/element"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/event"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/get"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/history"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/imagecropper"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/imageloader"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/json"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/layout"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/logger"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/menu"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/paginator"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/profiler"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/profilerviewer"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/resize"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/selector"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/slider"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/tabview"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/treeview"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/uploader"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/utilities"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/yahoo"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/yahoo-dom-event"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/yuiloader"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/yuiloader-dom-event"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="eclipse.org-common/yui/2.6.0/build/yuitest"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="js"/>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="tests/qunit"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path=""/>
</classpath>
org.eclipse.wst.jsdt.launching.JRE_CONTAINER
\ No newline at end of file
language: node_js
matrix:
include:
- node_js: 10
env: HUGO_ENV=dev
- node_js: 12
env: HUGO_ENV=production
install:
- npm install
- wget https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
script:
- if [ "$HUGO_ENV" = "dev" ]; then hugo --gc --minify --buildFuture; fi;
- if [ "$HUGO_ENV" = "production" ]; then hugo --gc --minify ; fi;
\ No newline at end of file
# Community Code of Conduct
**Version 1.1
October 21, 2019**
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies within all project spaces, and it also applies when
an individual is representing the project or its community in public spaces.
Examples of representing a project or community include using an official
project e-mail address, posting via an official social media account, or acting
as an appointed representative at an online or offline event. Representation of
a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at codeofconduct@eclipse.org. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
\ No newline at end of file
# Contributing to events.eclipse.org
Thanks for your interest in this project.
## Project description
events.eclipse.org is a project to regroup assets for the Eclipse Foundation look and feel.
* https://github.com/EclipseFdn/events.eclipse.org
## Developer resources
The project maintains the following source code repositories
* https://github.com/EclipseFdn/events.eclipse.org
## Eclipse Contributor Agreement
Before your contribution can be accepted by the project team contributors must
electronically sign the Eclipse Contributor Agreement (ECA).
* http://www.eclipse.org/legal/ECA.php
Commits that are provided by non-committers must have a Signed-off-by field in
the footer indicating that the author is aware of the terms by which the
contribution has been provided to the project. The non-committer must
additionally have an Eclipse Foundation account and must have a signed Eclipse
Contributor Agreement (ECA) on file.
For more information, please see the Eclipse Committer Handbook:
https://www.eclipse.org/projects/handbook/#resources-commit
## Contact
Contact the Eclipse Foundation Webdev team via webdev@eclipse-foundation.org.
ARG NGINX_IMAGE_TAG=stable-alpine
FROM debian:10-slim AS builder
ARG HUGO_VERSION=0.62.2
ARG NODE_VERSION=10.15.0
RUN apt-get update && apt-get install -y \
build-essential \
ca-certificates \
curl \
git \
--no-install-recommends
RUN curl -L -o /tmp/node.tar.xz "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" \
&& mkdir -p /usr/local/lib/nodejs \
&& tar -xJf /tmp/node.tar.xz -C /usr/local/lib/nodejs \
&& ln -s /usr/local/lib/nodejs/node-v${NODE_VERSION}-linux-x64/bin/node /usr/bin/node \
&& ln -s /usr/local/lib/nodejs/node-v${NODE_VERSION}-linux-x64/bin/npm /usr/bin/npm \
&& ln -s /usr/local/lib/nodejs/node-v${NODE_VERSION}-linux-x64/bin/npx /usr/bin/npx
RUN curl -L -o /tmp/hugo.deb "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb" \
&& dpkg -i /tmp/hugo.deb
WORKDIR /workdir
COPY . /workdir/
RUN echo -n "Node.js version " && node --version \
&& echo -n "npm version " && npm --version \
&& hugo version
RUN npm --unsafe-perm ci \
&& hugo
FROM eclipsefdn/nginx:${NGINX_IMAGE_TAG}
COPY --from=builder /workdir/public/ /usr/share/nginx/html/
module.exports = function(grunt) {
// Initializing the configuration object
grunt.initConfig({
// Import package manifest
pkg: grunt.file.readJSON("package.json"),
meta: {
banner: "/*\n" +
" * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n" +
" * <%= pkg.description %>\n" +
" *\n" +
" * Copyright (c) 2013-2016 Angelika Wittek (Munich, Germany).\n" +
" * All rights reserved. This program and the accompanying materials\n" +
" * are made available under the terms of the Eclipse Public License v1.0\n" +
" * which accompanies this distribution, and is available at\n" +
" * http://www.eclipse.org/legal/epl-v10.html\n" +
" *\n" +
" * Contributors:\n" +
" * Angelika Wittek\n" +
" * Ralph Müller (rm)\n" +
" * Christopher Guindon\n" +
" */\n"
},
copy: {
main: {
files: [
// includes files within path
{
expand: true,
flatten: true,
src: ['bower_components/bootstrap/fonts/*'],
dest: 'assets/fonts/',
filter: 'isFile'
}, {
expand: true,
flatten: true,
src: ['bower_components/fontawesome/fonts/*'],
dest: 'assets/fonts/',
filter: 'isFile'
}, {
expand: true,
cwd: 'bower_components/solstice-assets/images/template',
src: ['**'],
dest: 'assets/images/template',
filter: 'isFile'
}, {
expand: true,
cwd: 'bower_components/solstice-assets/images/components/back-to-top',
src: ['**'],
dest: 'assets/images/components/back-to-top',
filter: 'isFile'
}
]
}
},
less: {
development: {
options: {
compress: true
// minifying the result
},
files: {
// compiling styles.less into styles.css
"./assets/css/main.min.css": "./src/less/EclipseEvents.less"
}
}
},
concat: {
options: {
separator: ';',
},
js_plugin: {
src: [
//'./bower_components/jquery/jquery.min.js',
'./bower_components/leaflet/dist/leaflet.js',
'./bower_components/leaflet.markercluster/dist/leaflet.markercluster.js'
],
dest: './assets/js/plugins.js',
},
js_src: {
src: [
'./src/js/EclipseEvents.js',
'./src/js/EclipseEventsConstants.js',
],
dest: './assets/js/EclipseEvents.js',
}
},
uglify: {
options: {
mangle: false,
banner: "<%= meta.banner %>"
},
src: {
files: {
'./assets/js/EclipseEvents.min.js': './assets/js/EclipseEvents.js',
}
},
},
watch: {
js_frontend: {
files: ['./src/js/*.js'],
// tasks to run
tasks: ['concat:js_plugin', 'concat:js_src', 'uglify:src'],
},
less: {
files: ['./src/less/*.less'],
// watched files
tasks: ['less', 'copy'],
// tasks to run
},
}
});
// Plugin loading
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
// Task definition
grunt.registerTask('default', ['watch']);
};
\ No newline at end of file
@Library('common-shared') _
pipeline {
agent {
kubernetes {
label 'kubedeploy-agent'
yaml '''
apiVersion: v1
kind: Pod
spec:
containers:
- name: kubectl
image: eclipsefdn/kubectl:1.9-alpine
command:
- cat
tty: true
'''
}
}
parameters {
string(name: 'hugo_version', defaultValue: '0.62.2', description: 'The Hugo version that will be used to build the website. Must match versions speficied on https://github.com/gohugoio/hugo/releases.')
string(name: 'node_version', defaultValue: '10.15.3', description: 'The Node.js version that will be used to build the website. Must match versions specified on https://nodejs.org/en/download/releases/. It is adivsed to stick to LTS versions.')
}
environment {
APP_NAME = 'events.eclipse.org'
NAMESPACE = 'foundation-internal-webdev-apps'
IMAGE_NAME = 'eclipsefdn/events.eclipse.org'
CONTAINER_NAME = 'nginx'
ENVIRONMENT = sh(
script: """
if [ "${env.BRANCH_NAME}" = "master" ]; then
printf "production"
else
printf "${env.BRANCH_NAME}"
fi
""",
returnStdout: true
)
TAG_NAME = sh(
script: """
GIT_COMMIT_SHORT=\$(git rev-parse --short ${env.GIT_COMMIT})
if [ "${env.ENVIRONMENT}" = "" ]; then
printf \${GIT_COMMIT_SHORT}-${env.BUILD_NUMBER}
else
printf ${env.ENVIRONMENT}-\${GIT_COMMIT_SHORT}-${env.BUILD_NUMBER}
fi
""",
returnStdout: true
)
BASE_NGINX_IMAGE_TAG = sh(
script: """
if [ "${env.ENVIRONMENT}" = "production" ]; then
printf "stable-alpine"
else
printf "stable-alpine-for-staging"
fi
""",
returnStdout: true
)
}
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
}
triggers {
// build once a week to keep up with parents images updates
cron('H H * * H')
}
stages {
stage('Build docker image') {
agent {
label 'docker-build'
}
steps {
sh '''
docker build --no-cache --pull --build-arg NGINX_IMAGE_TAG="${BASE_NGINX_IMAGE_TAG}" --build-arg HUGO_VERSION="${hugo_version}" --build-arg NODE_VERSION="${node_version}" -t ${IMAGE_NAME}:${TAG_NAME} -t ${IMAGE_NAME}:latest .
'''
}
}
stage('Push docker image') {
agent {
label 'docker-build'
}
when {
anyOf {
environment name: 'ENVIRONMENT', value: 'production'
environment name: 'ENVIRONMENT', value: 'staging'
}
}
steps {
withDockerRegistry([credentialsId: '04264967-fea0-40c2-bf60-09af5aeba60f', url: 'https://index.docker.io/v1/']) {
sh '''
docker push ${IMAGE_NAME}:${TAG_NAME}
docker push ${IMAGE_NAME}:latest
'''
}
}
}
stage('Deploy to cluster') {
when {
anyOf {
environment name: 'ENVIRONMENT', value: 'production'
environment name: 'ENVIRONMENT', value: 'staging'
}
}
steps {
container('kubectl') {
withKubeConfig([credentialsId: '1d8095ea-7e9d-4e94-b799-6dadddfdd18a', serverUrl: 'https://console-int.c1-ci.eclipse.org']) {
sh '''
DEPLOYMENT="$(k8s getFirst deployment "${NAMESPACE}" "app=${APP_NAME},environment=${ENVIRONMENT}")"
if [[ $(echo "${resource}" | jq -r 'length') -eq 0 ]]; then
echo "ERROR: Unable to find a deployment to patch matching '${selector}' in namespace ${namespace}"
exit 1
else
DEPLOYMENT_NAME="$(echo "${DEPLOYMENT}" | jq -r '.metadata.name')"
kubectl set image "deployment.v1.apps/${DEPLOYMENT_NAME}" -n "${NAMESPACE}" "${CONTAINER_NAME}=${IMAGE_NAME}:${TAG_NAME}" --record=true
if ! kubectl rollout status "deployment.v1.apps/${DEPLOYMENT_NAME}" -n "${NAMESPACE}"; then
# will fail if rollout does not succeed in less than .spec.progressDeadlineSeconds
kubectl rollout undo "deployment.v1.apps/${DEPLOYMENT_NAME}" -n "${NAMESPACE}"
exit 1
fi
fi
'''
}
}
}
}
}
post {
always {
deleteDir() /* clean up workspace */
sendNotifications currentBuild
}
}
}
Eclipse Public License - v 2.0
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
1. DEFINITIONS
"Contribution" means:
a) in the case of the initial Contributor, the initial content
Distributed under this Agreement, and
b) in the case of each subsequent Contributor:
i) changes to the Program, and
ii) additions to the Program;
where such changes and/or additions to the Program originate from
and are Distributed by that particular Contributor. A Contribution
"originates" from a Contributor if it was added to the Program by
such Contributor itself or anyone acting on such Contributor's behalf.
Contributions do not include changes or additions to the Program that
are not Modified Works.
"Contributor" means any person or entity that Distributes the Program.
"Licensed Patents" mean patent claims licensable by a Contributor which
are necessarily infringed by the use or sale of its Contribution alone
or when combined with the Program.
"Program" means the Contributions Distributed in accordance with this
Agreement.
"Recipient" means anyone who receives the Program under this Agreement
or any Secondary License (as applicable), including Contributors.
"Derivative Works" shall mean any work, whether in Source Code or other
form, that is based on (or derived from) the Program and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship.
"Modified Works" shall mean any work in Source Code or other form that
results from an addition to, deletion from, or modification of the
contents of the Program, including, for purposes of clarity any new file
in Source Code form that contains any contents of the Program. Modified
Works shall not include works that contain only declarations,
interfaces, types, classes, structures, or files of the Program solely