18 Commits

Author SHA1 Message Date
201e6be255 Utilisation de pathlib 2023-02-01 08:34:05 +01:00
f10834b002 Étiquetage selinux pour une utilisation non-root 2023-02-01 08:34:05 +01:00
6fe1d305e0 Ajout du profil pour la version 2.9.0 d'EOLE 2023-02-01 08:32:02 +01:00
fdebf244d5 Mieux interpréter la numérotation utilisée pour les projets envole 2023-02-01 08:32:02 +01:00
b49c8c8b02 Limit entries created in changelog. 2022-03-31 15:43:21 +02:00
766151eae3 Pour une poignée de profils 2022-03-29 10:42:21 +02:00
f8195ba9f7 Utilisation de wget pour la récupération des certificats LetsEncrypt
Contournement pour https://github.com/moby/buildkit/issues/905
2022-01-28 09:29:29 +01:00
47c7d0ac3c Suppression du hash de commit pour les paquets dev et staging 2022-01-12 15:08:30 +01:00
4c4fd6d42c Add 'no libs volumes' mode 2021-02-25 08:42:54 +01:00
546e62e077 Update LetsEncrypt certs 2021-02-22 15:41:22 +01:00
4b61e5dafc Install LetsEncrypt CA in packaging environment 2021-02-18 18:56:45 +01:00
c83e6190c4 Find first commit starting from HEAD 2020-09-16 11:31:47 +02:00
cad163ffd0 Branch master is not always available, pointing to origin/master 2020-09-16 10:25:16 +02:00
97fd00a3c7 Fixes changelog creation starting on a pkg tag 2020-09-16 09:39:35 +02:00
fdba555beb New profile and remove debug flag in hook 2020-09-03 14:50:36 +02:00
253c77489b Fixes changelog et version computation 2020-09-03 08:45:00 +02:00
9a46f34f73 SSH for Jenkins 2020-09-02 15:49:20 +02:00
5a4c17a959 Add script for using ssh with options 2020-09-02 15:10:50 +02:00
11 changed files with 247 additions and 55 deletions

View File

@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -e
DESTDIR=/usr/local/share/ca-certificates
UPDATE_CERTS_CMD=update-ca-certificates
CERTS="$(cat <<EOF
https://letsencrypt.org/certs/isrgrootx1.pem
https://letsencrypt.org/certs/isrg-root-x2.pem
https://letsencrypt.org/certs/lets-encrypt-r3.pem
https://letsencrypt.org/certs/lets-encrypt-e1.pem
https://letsencrypt.org/certs/lets-encrypt-r4.pem
https://letsencrypt.org/certs/lets-encrypt-e2.pem
EOF
)"
echo "ENV DEBIAN_FRONTEND=noninteractive" >> Dockerfile
echo "RUN apt-get update && apt-get install --yes --no-install-recommends wget openssl ca-certificates" >> Dockerfile
for cert in $CERTS; do
filename=$(basename "$cert")
echo "RUN wget -O '$DESTDIR/$filename' $cert" >> Dockerfile
echo "RUN openssl x509 -in '$DESTDIR/$filename' -inform PEM -out '$DESTDIR/$filename.crt'" >> Dockerfile
done
echo "RUN $UPDATE_CERTS_CMD" >> Dockerfile
echo "ENV DEBIAN_FRONTEND=" >> Dockerfile

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd src cd src
if [ -f debian/changelog ] || [ ! -d .git ]; then if [ -f debian/changelog ] || [ ! -d .git ]; then
tamarin_info "Not a Git repository or Debian changelog already exists !" tamarin_info "Not a Git repository or Debian changelog already exists !"
@ -13,11 +12,11 @@ pkg_tags="$(git for-each-ref --format '%(refname)' refs/tags | tac)"
# Set starting commit # Set starting commit
ceiling_commit=$(git describe --match "build/*" --abbrev=0 2>/dev/null) ceiling_commit=$(git describe --match "build/*" --abbrev=0 2>/dev/null)
if [ -n "ceiling_commit" ] if [ -z "$ceiling_commit" ]
then then
ceiling_commit="HEAD" ceiling_commit="HEAD"
fi fi
first_commit=$(git rev-list --max-parents=0 master) first_commit=$(git rev-list --max-parents=0 HEAD)
# Get commits log as changelog # Get commits log as changelog
@ -55,7 +54,7 @@ function get_short_hash {
function get_previous_pkg_tag { function get_previous_pkg_tag {
# Return previous pkg/* tag or current tag if no previous pkg/* exists. # Return previous pkg/* tag or current tag if no previous pkg/* exists.
commit="$1" commit="$1"
echo "$(git describe --abbrev=0 --always --match='pkg/*' $commit)" echo "$(git describe --abbrev=0 --match='pkg/*' $commit 2>/dev/null)"
} }
function parse_tag { function parse_tag {
@ -64,10 +63,10 @@ function parse_tag {
extended_version="${tag##*/}" extended_version="${tag##*/}"
if [ "$flavor" = "pkg" ] if [ "$flavor" = "pkg" ]
then then
exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.]\+\)-\([0-9]\+\)\(-[a-z]\++[0-9]\+\)\?\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 revision:\2 modification:\3 distance:\5 anchor:\6/")" exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.+]\+\)-\([0-9]\+\)\(-[a-z]\++[0-9]\+\)\?\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 revision:\2 modification:\3 distance:\5 anchor:\6/")"
elif [ "$flavor" = "release" ] elif [ "$flavor" = "release" ]
then then
exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.]\+\)\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 distance:\3 anchor:\4/")" exploded_version="$(echo $extended_version | sed "s/\([a-z0-9.+]\+\)\(-\([0-9]\+\)-\(g[a-z0-9]\+\)\)\?$/version:\1 distance:\3 anchor:\4/")"
fi fi
echo $exploded_version echo $exploded_version
} }
@ -103,6 +102,16 @@ function get_package_version_from_tag {
echo "$package" echo "$package"
} }
function get_distribution_from_tag {
# tag pkg like pkg/<level>/<distrib>/<version>
# <distrib> may be composed
tag="$1"
distribution="${tag#pkg/*/}"
distribution="${distribution%/*}"
distribution="${distribution/\//-}"
echo $distribution
}
function get_previous_release_tag { function get_previous_release_tag {
# Return previous pkg/* tag or current tag if no previous pkg/* exists. # Return previous pkg/* tag or current tag if no previous pkg/* exists.
commit="$1" commit="$1"
@ -113,7 +122,7 @@ function on_pkg_tag {
# Return 1 if current commit is tagged with pkg/* tag. # Return 1 if current commit is tagged with pkg/* tag.
commit="$1" commit="$1"
nearest_old_pkg_tag="$(get_previous_pkg_tag $commit)" nearest_old_pkg_tag="$(get_previous_pkg_tag $commit)"
if [ "$(get_hash ${commit})" = "$(get_hash ${nearest_old_pkg_tag})" ] if [ -n "${nearest_old_pkg_tag}" ] && [ "$(get_hash ${commit})" = "$(get_hash ${nearest_old_pkg_tag})" ]
then then
return 0 return 0
else else
@ -159,19 +168,20 @@ function date_from_commit {
function packager_from_commit { function packager_from_commit {
# Return Name <mail> id format, suitable for changelog entry signature # Return Name <mail> id format, suitable for changelog entry signature
commit="$1" commit="$1"
if [ "${commit}" = "HEAD" ] if on_pkg_tag "${commit}"
then then
maintainer="$(git log -n1 --format='%cn <%ce>')"
else
maintainer_commit="$(get_previous_pkg_tag $commit)" maintainer_commit="$(get_previous_pkg_tag $commit)"
maintainer="$(git tag -l --format='%(creator)' ${maintainer_commit})" maintainer="$(git tag -l --format='%(creator)' ${maintainer_commit})"
maintainer="${maintainer%>*}>" maintainer="${maintainer%>*}>"
else
maintainer="$(git log -n1 --format='%cn <%ce>')"
fi fi
maintainer=$(tamarin_db get maintainer "${maintainer}") maintainer=$(tamarin_db get maintainer "${maintainer}")
echo "$maintainer" echo "$maintainer"
} }
function next_version { function next_version {
set -x
commit="$1" commit="$1"
# upstream version is given by most recent of release or pkg tag # upstream version is given by most recent of release or pkg tag
previous_pkg="$(git describe --long --match='pkg/*' $commit 2>/dev/null)" previous_pkg="$(git describe --long --match='pkg/*' $commit 2>/dev/null)"
@ -190,10 +200,12 @@ function next_version {
fi fi
elif [ -n "$previous_release" ] elif [ -n "$previous_release" ]
then then
distance_from_release=$(get_distance_from_tag "$previous_release" "$commit")
distance=$distance_from_release distance=$distance_from_release
version="$(get_upstream_version_from_tag $previous_release)-1" version="$(get_upstream_version_from_tag $previous_release)-1"
elif [ -n "$previous_pkg" ] elif [ -n "$previous_pkg" ]
then then
distance_from_pkg=$(get_distance_from_tag "$previous_pkg" "$commit")
distance=$distance_from_pkg distance=$distance_from_pkg
version="$(get_upstream_version_from_tag $previous_pkg)-$(expr $(get_package_version_from_tag $previous_pkg) + 1)" version="$(get_upstream_version_from_tag $previous_pkg)-$(expr $(get_package_version_from_tag $previous_pkg) + 1)"
else else
@ -202,34 +214,34 @@ function next_version {
fi fi
if [ "$package_level" = 'dev' ] || [ "$package_level" = 'staging' ] if [ "$package_level" = 'dev' ] || [ "$package_level" = 'staging' ]
then then
version="${version}~${package_level}+${distance}~$(get_short_hash $commit)" version="${version}~${package_level}+${distance}"
fi fi
echo $version echo $version
set +x
} }
function gen_changelog_entry { function gen_changelog_entry {
ceiling_commit=$1 ceiling_commit=$1
floor_commit="$(next_step "${ceiling_commit}")" floor_commit="$(next_step "${ceiling_commit}")"
if [ "$(get_hash ${ceiling_commit})" = "$(get_hash ${floor_commit})" ] if [ "$(get_hash ${ceiling_commit})" = "$(get_hash ${floor_commit})" ]
then then
return 1 return 1
fi fi
if on_pkg_tag $ceiling_commit if on_pkg_tag $ceiling_commit
then then
ceiling_commit="$(get_previous_pkg_tag $ceiling_commit)"
version="$(get_upstream_version_from_tag $ceiling_commit)-$(get_package_version_from_tag $ceiling_commit)" version="$(get_upstream_version_from_tag $ceiling_commit)-$(get_package_version_from_tag $ceiling_commit)"
distribution="$(get_distribution_from_tag $ceiling_commit)"
else else
tamarin_info "current commit $ceiling_commit" tamarin_info "current commit $ceiling_commit"
version=$(next_version $ceiling_commit) version=$(next_version $ceiling_commit)
distribution="UNRELEASED"
fi fi
#current_release="$(git describe --abbrev=0 --always --match='release/*' $ceiling_commit)" #current_release="$(git describe --abbrev=0 --always --match='release/*' $ceiling_commit)"
tamarin_info "Création de lentrée de changelog entre ${ceiling_commit} et ${floor_commit}" tamarin_info "Création de lentrée de changelog entre ${ceiling_commit} et ${floor_commit}"
maintainer="$(packager_from_commit ${ceiling_commit})" maintainer="$(packager_from_commit ${ceiling_commit})"
package_date="$(date_from_commit ${ceiling_commit})" package_date="$(date_from_commit ${ceiling_commit})"
version=${version/_/-} version=${version/_/-}
changelog_entry="${project_name} (${version}) ${distribution}; urgency=${urgency}" changelog_entry="${project_name} (${version}) ${distribution}; urgency=${urgency}"
echo "$changelog_entry" >> debian/changelog echo "$changelog_entry" >> debian/changelog
@ -248,9 +260,15 @@ function gen_changelog_entry {
} }
function gen_changelog() { function gen_changelog() {
limit=10
while gen_changelog_entry $ceiling_commit while gen_changelog_entry $ceiling_commit
do do
limit=`expr $limit - 1`
echo $changelog_entry echo $changelog_entry
if [ "$limit" -le 0 ]
then
break
fi
done done
} }

View File

@ -1,4 +1,4 @@
import os, glob, subprocess, configparser, codecs, sys import os, glob, subprocess, configparser, codecs, sys, pathlib
def run_profile_hooks(profile, step, **kwargs): def run_profile_hooks(profile, step, **kwargs):
hooks_dir = get_hooks_dir() hooks_dir = get_hooks_dir()
@ -9,45 +9,57 @@ def run_profile_hooks(profile, step, **kwargs):
trimmed_hook_name = hook_name.strip(' \t\n\r') trimmed_hook_name = hook_name.strip(' \t\n\r')
if not trimmed_hook_name: if not trimmed_hook_name:
continue continue
hook_path = os.path.join(hooks_dir, trimmed_hook_name) hook_path = hooks_dir.joinpath(trimmed_hook_name)
run([hook_path], **kwargs) run([hook_path], **kwargs)
def get_base_dir():
base_dir = pathlib.Path(__file__).absolute().parent.parent.resolve()
return base_dir
def get_hooks_dir(): def get_hooks_dir():
return os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + "/../hooks") hooks_dir = get_base_dir().joinpath('hooks')
return hooks_dir
def get_lib_dir(): def get_lib_dir():
return os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + "/../lib") lib_dir = get_base_dir().joinpath('lib')
return lib_dir
def load_profile(profile_name, debug=False): def get_utils_dir():
profile_filename = profile_name+".conf" utils_dir = get_base_dir().joinpath('utils')
for profile_file in get_available_profiles(): return utils_dir
if profile_filename == os.path.basename(profile_file):
config = configparser.ConfigParser()
with codecs.open(profile_file, encoding = 'utf-8', mode = 'r') as handle:
config.read_file(handle)
return config
return None
def get_profiles_dir(): def get_profiles_dir():
return os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + "/../profiles") profiles_dir = get_base_dir().joinpath('profiles')
return profiles_dir
def get_available_profiles():
return glob.glob(get_profiles_dir() + '/*.conf')
def get_available_profile_names():
profile_files = get_available_profiles()
return [os.path.splitext(os.path.basename(f))[0] for f in profile_files]
def get_workspace_dir(): def get_workspace_dir():
"""Return the absolute path to the tamarin workspace ($HOME/.tamarin)""" """Return the absolute path to the tamarin workspace ($HOME/.tamarin)"""
home = os.environ["HOME"] home = pathlib.Path(os.environ["HOME"])
return os.path.join(os.sep, home, '.tamarin') workspace_dir = home.joinpath('.tamarin')
return workspace_dir
def get_workspace_subdir(subdir): def get_workspace_subdir(subdir):
"""Return the absolute path to a subdirectory in tamarin workspace""" """Return the absolute path to a subdirectory in tamarin workspace"""
dir_path = os.path.join(os.sep, get_workspace_dir(), subdir) subdir_path = get_workspace_dir().joinpath(subdir)
os.makedirs(dir_path, exist_ok=True) subdir_path.mkdir(parents=True, exist_ok=True)
return dir_path return subdir_path
def load_profile(profile_name, debug=False):
profile_filename = profile_name+".conf"
profile_path = get_profiles_dir().joinpath(profile_filename)
if profile_path.exists():
config = configparser.ConfigParser()
with codecs.open(profile_path, encoding = 'utf-8', mode = 'r') as handle:
config.read_file(handle)
return config
return None
def get_available_profiles():
return get_profiles_dir().glob('*.conf')
def get_available_profile_names():
profile_files = get_available_profiles()
return [p.stem for p in profile_files]
def run(cmd, captureOutput=False, pty=False, debug=False, **kwargs): def run(cmd, captureOutput=False, pty=False, debug=False, **kwargs):
"""Execute an arbitrary command on the system""" """Execute an arbitrary command on the system"""

35
package
View File

@ -1,8 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import argparse, sys, shutil, os, subprocess import argparse, sys, shutil, os, subprocess, pathlib
sys.path.append(os.path.dirname(__file__) + '/lib') sys.path.append(pathlib.Path(__file__).parent.joinpath('lib').as_posix())
import tamarin import tamarin
@ -23,20 +23,23 @@ def create_args_parser():
parser.add_argument("--cleanup", help="Clear the workspace and remove obsolete Docker images before build", action="store_true", default=False) parser.add_argument("--cleanup", help="Clear the workspace and remove obsolete Docker images before build", action="store_true", default=False)
parser.add_argument("--override-docker-args", help="Override all 'docker run' arguments. Use '[IMAGE_TAG]', '[PROFILE]' and '[ARCH]' to insert the corresponding values into your command.", default="") parser.add_argument("--override-docker-args", help="Override all 'docker run' arguments. Use '[IMAGE_TAG]', '[PROFILE]' and '[ARCH]' to insert the corresponding values into your command.", default="")
parser.add_argument("--prepare-only", help="Only prepare build environment for the given profile", action="store_true", default=False) parser.add_argument("--prepare-only", help="Only prepare build environment for the given profile", action="store_true", default=False)
parser.add_argument("--no-lib-mounts", help="Disable Tamarin library volumes mount", action="store_true", default=False)
return parser return parser
def build_image(build_workspace, base_image, profile_name, profile, debug=False, rebuild=False): def build_image(build_workspace, base_image, profile_name, profile, debug=False, rebuild=False):
shutil.copytree(tamarin.get_base_dir(), build_workspace.joinpath('.tamarin'))
with open("{:s}/Dockerfile".format(build_workspace), 'w') as dockerfile: with open(build_workspace.joinpath("Dockerfile"), 'w') as dockerfile:
dockerfile.write("FROM {:s}\n".format(base_image)) dockerfile.write("FROM {:s}\n".format(base_image))
dockerfile.write("COPY .tamarin /tamarin\n")
# Configure "containerbuild" hooks environment # Configure "containerbuild" hooks environment
hooks_env = os.environ.copy() hooks_env = os.environ.copy()
hooks_env["PATH"] = os.environ['PATH'] + ':' + tamarin.get_lib_dir() hooks_env["PATH"] = os.environ['PATH'] + ':' + tamarin.get_lib_dir().as_posix()
# Run hooks # Run hooks
tamarin.run_profile_hooks(profile, 'containerbuild', cwd=build_workspace, env=hooks_env, debug=debug) tamarin.run_profile_hooks(profile, 'containerbuild', cwd=build_workspace.as_posix(), env=hooks_env, debug=debug)
image_tag = "tamarin:{:s}_{:s}_{:d}".format(profile_name, base_image.replace(':', '_'), os.getpid()) image_tag = "tamarin:{:s}_{:s}_{:d}".format(profile_name, base_image.replace(':', '_'), os.getpid())
@ -69,8 +72,9 @@ if __name__ == "__main__":
cleanup(debug=args.debug) cleanup(debug=args.debug)
# Verify project directory # Verify project directory
project_dir = os.path.abspath(args.project_directory) project_dir = pathlib.Path(args.project_directory).absolute()
output_dir = os.path.abspath(args.output) output_dir = pathlib.Path(args.output).absolute()
output_dir.mkdir(parents=True, exist_ok=True)
# Load build profile # Load build profile
profile = tamarin.load_profile(args.profile, debug=args.debug) profile = tamarin.load_profile(args.profile, debug=args.debug)
@ -80,6 +84,8 @@ if __name__ == "__main__":
pid = os.getpid() pid = os.getpid()
build_workspace = tamarin.get_workspace_subdir('tmp/build_{:d}'.format(pid)) build_workspace = tamarin.get_workspace_subdir('tmp/build_{:d}'.format(pid))
shutil.copytree(tamarin.get_utils_dir(), build_workspace.joinpath('utils'))
base_image = args.base if args.base != '' else profile['profile']['default_image'] base_image = args.base if args.base != '' else profile['profile']['default_image']
image_tag = build_image(build_workspace, base_image, args.profile, profile, debug=args.debug, rebuild=args.rebuild) image_tag = build_image(build_workspace, base_image, args.profile, profile, debug=args.debug, rebuild=args.rebuild)
@ -103,13 +109,18 @@ if __name__ == "__main__":
# volumes definition # volumes definition
docker_args += [ docker_args += [
"-v", "{:s}:/src:ro".format(project_dir), "-v", "{:s}:/src:z,ro".format(project_dir.as_posix()),
"-v", "{:s}:/dist".format(output_dir), "-v", "{:s}:/dist:z".format(output_dir.as_posix()),
"-v", "{:s}:/tamarin/hooks:ro".format(tamarin.get_hooks_dir()),
"-v", "{:s}:/tamarin/lib:ro".format(tamarin.get_lib_dir()),
"-v", "{:s}:/tamarin/profiles:ro".format(tamarin.get_profiles_dir())
] ]
if not args.no_lib_mounts:
docker_args += [
"-v", "{:s}:/tamarin/hooks:z,ro".format(tamarin.get_hooks_dir().as_posix()),
"-v", "{:s}:/tamarin/lib:z,ro".format(tamarin.get_lib_dir().as_posix()),
"-v", "{:s}:/tamarin/profiles:z,ro".format(tamarin.get_profiles_dir().as_posix()),
"-v", "{:s}:/tamarin/utils:z,ro".format(tamarin.get_utils_dir().as_posix())
]
# Use environment proxy if defined # Use environment proxy if defined
for proxy_var in ['HTTP_PROXY', 'HTTPS_PROXY', 'http_proxy', 'https_proxy']: for proxy_var in ['HTTP_PROXY', 'HTTPS_PROXY', 'http_proxy', 'https_proxy']:
if proxy_var in os.environ: if proxy_var in os.environ:

View File

@ -7,7 +7,8 @@ default_image=debian:stretch
[containerbuild] [containerbuild]
hooks= hooks=
containerbuild/debian/install-build-essential, containerbuild/debian/install-build-essential,
containerbuild/debian/install-git containerbuild/debian/install-git,
containerbuild/debian/install-letsencrypt-ca
# Configuration de l'étape de pré-construction du paquet # Configuration de l'étape de pré-construction du paquet
[prebuild] [prebuild]

30
profiles/eole-2.7.0.conf Normal file
View File

@ -0,0 +1,30 @@
# Configuration générale du profil
[profile]
# Image Docker par défaut
default_image=ubuntu:bionic
# Configuration de l'étape de pré-construction du conteneur
[containerbuild]
hooks=
containerbuild/debian/install-build-essential,
containerbuild/debian/install-git,
# Configuration de l'étape de pré-construction du paquet
[prebuild]
hooks=
prebuild/debian/copy-sources-to-workspace,
prebuild/debian/run-project-hooks,
prebuild/debian/load-project-db,
prebuild/debian/complete-project-db,
prebuild/eole/create-changelog,
prebuild/debian/install-build-depends
# Configuration de l'étape de construction du paquet
[build]
hooks=build/debian/build
# Configuration de l'étape de post-construction du paquet
[postbuild]
hooks=
postbuild/debian/run-project-hooks,
postbuild/debian/export-dist

View File

@ -17,7 +17,6 @@ hooks=
prebuild/debian/load-project-db, prebuild/debian/load-project-db,
prebuild/debian/complete-project-db, prebuild/debian/complete-project-db,
prebuild/eole/create-changelog, prebuild/eole/create-changelog,
prebuild/eole/add-package-version-suffix,
prebuild/debian/install-build-depends prebuild/debian/install-build-depends
# Configuration de l'étape de construction du paquet # Configuration de l'étape de construction du paquet

30
profiles/eole-2.7.2.conf Normal file
View File

@ -0,0 +1,30 @@
# Configuration générale du profil
[profile]
# Image Docker par défaut
default_image=ubuntu:bionic
# Configuration de l'étape de pré-construction du conteneur
[containerbuild]
hooks=
containerbuild/debian/install-build-essential,
containerbuild/debian/install-git,
# Configuration de l'étape de pré-construction du paquet
[prebuild]
hooks=
prebuild/debian/copy-sources-to-workspace,
prebuild/debian/run-project-hooks,
prebuild/debian/load-project-db,
prebuild/debian/complete-project-db,
prebuild/eole/create-changelog,
prebuild/debian/install-build-depends
# Configuration de l'étape de construction du paquet
[build]
hooks=build/debian/build
# Configuration de l'étape de post-construction du paquet
[postbuild]
hooks=
postbuild/debian/run-project-hooks,
postbuild/debian/export-dist

30
profiles/eole-2.8.1.conf Normal file
View File

@ -0,0 +1,30 @@
# Configuration générale du profil
[profile]
# Image Docker par défaut
default_image=ubuntu:focal
# Configuration de l'étape de pré-construction du conteneur
[containerbuild]
hooks=
containerbuild/debian/install-build-essential,
containerbuild/debian/install-git,
# Configuration de l'étape de pré-construction du paquet
[prebuild]
hooks=
prebuild/debian/copy-sources-to-workspace,
prebuild/debian/run-project-hooks,
prebuild/debian/load-project-db,
prebuild/debian/complete-project-db,
prebuild/eole/create-changelog,
prebuild/debian/install-build-depends
# Configuration de l'étape de construction du paquet
[build]
hooks=build/debian/build
# Configuration de l'étape de post-construction du paquet
[postbuild]
hooks=
postbuild/debian/run-project-hooks,
postbuild/debian/export-dist

31
profiles/eole-2.9.0.conf Normal file
View File

@ -0,0 +1,31 @@
# Configuration générale du profil
[profile]
# Image Docker par défaut
default_image=ubuntu:jammy
# Configuration de l'étape de pré-construction du conteneur
[containerbuild]
hooks=
containerbuild/debian/install-build-essential,
containerbuild/debian/install-git,
containerbuild/eole-2.9.0/configure-additional-repository,
# Configuration de l'étape de pré-construction du paquet
[prebuild]
hooks=
prebuild/debian/copy-sources-to-workspace,
prebuild/debian/run-project-hooks,
prebuild/debian/load-project-db,
prebuild/debian/complete-project-db,
prebuild/eole/create-changelog,
prebuild/debian/install-build-depends
# Configuration de l'étape de construction du paquet
[build]
hooks=build/debian/build
# Configuration de l'étape de post-construction du paquet
[postbuild]
hooks=
postbuild/debian/run-project-hooks,
postbuild/debian/export-dist

2
utils/sshForJenkins.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "$@"