| /******************************************************************************* |
| * Copyright (c) 2023 Martin Erich Jobst |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Martin Erich Jobst - initial implementation |
| *******************************************************************************/ |
| |
| pipeline { |
| agent { |
| kubernetes { |
| yaml """ |
| apiVersion: v1 |
| kind: Pod |
| spec: |
| containers: |
| - name: build |
| image: quay.io/eclipse-4diac/4diac-fortebuildcontainer:latest |
| resources: |
| limits: |
| cpu: "2000m" |
| memory: "4096Mi" |
| requests: |
| cpu: "1000m" |
| memory: "4096Mi" |
| command: |
| - cat |
| tty: true |
| """ |
| } |
| } |
| stages { |
| stage('Build static') { |
| steps { |
| container('build') { |
| cmakeBuild installation: 'CMake 3.14.5', buildDir: 'static', generator: 'Unix Makefiles', buildType: 'Debug', cmakeArgs: '-DFORTE_ARCHITECTURE=Posix -DFORTE_TESTS=ON -DFORTE_SYSTEM_TESTS=ON -DFORTE_LOGLEVEL=LOGDEBUG -DFORTE_EventChainExternalEventListSize=32 -DFORTE_MODULE_CONVERT=ON -DFORTE_MODULE_IEC61131=ON -DFORTE_MODULE_UTILS=ON -DFORTE_MODULE_RT_Events=ON -DFORTE_MODULE_RECONFIGURATION=ON -DFORTE_IO=ON -DFORTE_COM_ETH=ON -DFORTE_COM_FBDK=ON -DFORTE_COM_LOCAL=ON -DFORTE_COM_RAW=ON -DFORTE_COM_HTTP=ON -DFORTE_COM_OPC_UA=ON -DFORTE_COM_OPC_UA_INCLUDE_DIR=${WORKDIR}/open62541/binStatic -DFORTE_COM_OPC_UA_LIB_DIR=${WORKDIR}/open62541/binStatic/bin -DFORTE_COM_OPC_UA_LIB=libopen62541.a', steps: [[args: 'all']] |
| } |
| } |
| } |
| stage('Test static') { |
| steps { |
| container('build') { |
| ctest installation: 'CMake 3.14.5', workingDir: 'static', arguments: '--verbose' |
| } |
| } |
| } |
| } |
| } |