source: ogBrowser-Git/Jenkinsfile @ 639a975

jenkins
Last change on this file since 639a975 was 639a975, checked in by Vadim Troshchinskiy Shmelev <vtroshchinskiy@…>, 2 months ago

test

  • Property mode set to 100644
File size: 1.2 KB
Line 
1pipeline {
2    agent {
3        docker {
4            image 'ubuntu:24.04'
5            args '-u root:root'
6            label 'jenkins-slave'
7        }
8    }
9    stages {
10        stage('Install Dependencies') {
11            steps {
12                sh '''
13                    pwd
14                    uname -a
15                    df
16
17                    export DEBIAN_FRONTEND=noninteractive
18                    apt-get update
19                    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 ninja-build
20                '''
21            }
22        }
23        stage('Build') {
24            steps {
25                sh '''
26                    mkdir -p build
27                    cd build
28                    cmake .. -G Ninja
29                    ninja
30                '''
31            }
32        }
33        stage('Create package') {
34            steps {
35                sh '''
36                    cd build
37                    cpack -G DEB
38                '''
39            }
40        }
41
42    }
43    post {
44        always {
45            cleanWs()
46        }
47    }
48}
Note: See TracBrowser for help on using the repository browser.