Compare commits

...

10 Commits

Author SHA1 Message Date
dany
7d9f09eaba use remote agent instead of ssh connection
All checks were successful
gitea-sync/ci-yocto/pipeline/head This commit looks good
2022-09-29 19:09:44 +02:00
dany
09e3c5d6a7 dont use fixed workspace path for building
All checks were successful
gitea-sync/ci-yocto/pipeline/head This commit looks good
2022-09-26 09:33:00 +02:00
dany
2bd5e258bd Mise à jour de 'Dockerfile'
Some checks failed
gitea-sync/ci-yocto/pipeline/head There was a failure building this commit
2022-08-07 10:13:09 +02:00
dany
9a6351faeb Mise à jour de 'Dockerfile' 2022-08-07 00:52:01 +02:00
dany
6eb8151504 Mise à jour de 'Dockerfile' 2022-08-07 00:30:53 +02:00
dany
8b7a34b2a6 Mise à jour de 'Dockerfile' 2022-08-07 00:28:55 +02:00
dany
ca78d529ba Update 'Dockerfile' 2022-08-03 18:03:04 +02:00
dany
57fefd9699 Update 'Dockerfile' 2022-08-03 17:54:27 +02:00
Dany LE
e235cfa3cb add jenkin file 2022-08-03 16:44:17 +02:00
Dany LE
e1c0df3aac add docker file 2022-08-03 16:43:21 +02:00
2 changed files with 48 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM ubuntu:focal AS build-env
RUN dpkg --add-architecture i386
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" \
apt-get --yes --no-install-recommends install \
gawk wget git diffstat unzip texinfo gcc build-essential \
chrpath socat cpio python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git \
python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 \
xterm python3-subunit mesa-common-dev zstd liblz4-tool file locales locales-all \
curl unzip libc6:i386 zlib1g:i386 zlib1g
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

35
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,35 @@
pipeline{
agent { node{ label'workstation' }}
options {
// Limit build history with buildDiscarder option:
// daysToKeepStr: history is only kept up to this many days.
// numToKeepStr: only this many build logs are kept.
// artifactDaysToKeepStr: artifacts are only kept up to this many days.
// artifactNumToKeepStr: only this many builds have their artifacts kept.
buildDiscarder(logRotator(numToKeepStr: "1"))
// Enable timestamps in build log console
timestamps()
// Maximum time to run the whole pipeline before canceling it
timeout(time: 1, unit: 'HOURS')
// Use Jenkins ANSI Color Plugin for log console
ansiColor('xterm')
// Limit build concurrency to 1 per branch
disableConcurrentBuilds()
}
stages
{
stage('Build') {
steps {
sh'''
cd $WORKSPACE
docker buildx build \
--platform amd64 \
--output "type=docker,push=false,name=xsangle/ci-yocto:focal" \
.
docker tag xsangle/ci-yocto:focal workstation:5000/xsangle/ci-yocto:focal
docker push workstation:5000/xsangle/ci-yocto:focal
'''
}
}
}
}