Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7d9f09eaba | ||
|
09e3c5d6a7 | ||
|
2bd5e258bd | ||
|
9a6351faeb | ||
|
6eb8151504 | ||
|
8b7a34b2a6 | ||
|
ca78d529ba | ||
|
57fefd9699 | ||
|
e235cfa3cb | ||
|
e1c0df3aac |
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
35
Jenkinsfile
vendored
Normal 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
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user