Jenkins test

main
Vadim vtroshchinskiy 2025-02-20 09:55:56 +01:00
parent c0f5f43555
commit c0045cf45d
1 changed files with 26 additions and 4 deletions

28
Jenkinsfile vendored
View File

@ -1,11 +1,33 @@
pipeline {
agent any
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 {
echo 'Jenkinsfile for ogbrowser'
sh '''
mkdir -p build
cd build
cmake .. -G Ninja
ninja
'''
}
}
}
post {
always {
cleanWs()
}
}
}