Preparation and bake time: 1hour 20minutes
For 6 people:
- 25cl of water
- 80 gr of butter
#!/bin/bash -e | |
# | |
# arg1, file with lines of copyright errors from wercker | |
# e.g. | |
# /pipeline/source/pom.xml: Copyright year is wrong; is 2019, should be 2020 | |
# | |
# NOTES: | |
# - stash any local changes before running this script | |
# - check the result with `git status` | |
# - if needed, revert changes with `git reset --hard` |
/* | |
* Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
package org.example; | |
import java.util.UUID; | |
import javax.json.bind.annotation.JsonbCreator; | |
import javax.json.bind.annotation.JsonbProperty; | |
public final class Employee { | |
private final String id; | |
private final String firstName; |
#!/bin/bash -e | |
trap 'echo "ERROR: Error occurred at ${BASH_SOURCE}:${LINENO} command: ${BASH_COMMAND}"' ERR | |
set -eo pipefail | |
usage(){ | |
echo "" | |
echo "Usage: `basename ${0}` [OPTIONS] --owner=OWNER --app-name=APP_NAME --branch=BRANCH --pipeline=PIPELINE..." | |
echo "" | |
echo "Trigger wercker job(s)." |
We do want 2 kind of CI pipelines:
For GlassFish, the gate keeper pipeline shall run as fast as possible with the best coverage possible. Test suites are split in small chunks and executed concurrently, this allows to run many test suites and keep the end-to-end pipeline time acceptable.
Theoretically we could run every single test suite for every changeset ; however there is an implicit limitation of compute resources where the build could slow down the end-to-end time. Test suites may also not be 100% stable, causing sporadic failures that require a manual retry of some sort.
private static Routing createRouting() { | |
return Routing.builder() | |
.register(JsonbSupport.builder() | |
.type(Dog.class) | |
.config(new JsonbConfig() | |
.withNullValues(true)) | |
.build()) | |
.post("/test", Main::test) | |
.build(); | |
} |