use docker and install dependencies
This commit is contained in:
17
JenkinsFile
17
JenkinsFile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user