use docker and install dependencies

This commit is contained in:
2026-01-30 20:21:30 +10:30
parent 01b3b7a401
commit 5b0768536a

View File

@@ -1,7 +1,24 @@
pipeline { pipeline {
agent any agent any
agent {
docker {
image 'ubuntu:22.04'
args '-u root'
}
}
stages { stages {
stage('Install Dependencies') {
steps {
sh '''
apt update
apt install -y build-essential binutils-arm-none-eabi git libpng-dev cmake
'''
}
}
stage('Checkout') { stage('Checkout') {
steps { steps {
checkout scm checkout scm