ogbrowser/Jenkinsfile

34 lines
875 B
Groovy

pipeline {
agent {
docker {
image 'ubuntu:24.04'
args '-u root:root'
}
}
stages {
stage('Install Dependencies') {
steps {
sh '''
apt-get update
apt-get install -y build-essential cmake g++ qt6-base-dev qt6-webengine-dev linguist-qt6 libgl1-mesa-dev qt6-tools-dev qt6-l10n-tools qt6-tools-dev-tools libqt6core5compat6-dev lxqt-build-tools qt6-webengine-dev-tools libqt6webenginecore6-bin
'''
}
}
stage('Build') {
steps {
sh '''
mkdir -p build
cd build
cmake .. -G Ninja
ninja
'''
}
}
}
post {
always {
cleanWs()
}
}
}