Skip to content
Snippets Groups Projects
Commit c1d399ae authored by Raghunandan Netrapalli Madhusudhan's avatar Raghunandan Netrapalli Madhusudhan
Browse files

Remove windows build and update jenkinsfile

parent 3026b12c
No related branches found
No related tags found
1 merge request!277Draft: Integrate gecco optestrunner
...@@ -76,7 +76,7 @@ spec: ...@@ -76,7 +76,7 @@ spec:
} }
} }
} }
stage('Linux and Windows build') { stage('Build astas with gecco') {
parallel { parallel {
stage('Linux') { stage('Linux') {
agent { agent {
...@@ -94,141 +94,37 @@ spec: ...@@ -94,141 +94,37 @@ spec:
PYTHON_EXECUTABLE = 'python3' PYTHON_EXECUTABLE = 'python3'
} }
stages { stages {
stage('Linux: Cleanup and prepare dependencies') { stage('Linux: Cleanup') {
steps { steps {
container('openpass-build') { container('openpass-build') {
sh 'bash repo/utils/ci/scripts/build_prepare.sh' sh 'bash repo/utils/ci/scripts/build_prepare.sh'
} }
} }
} }
stage('Linux: Code compliance') { stage('Linux: Pull gtgen') {
steps { steps {
container('openpass-build') { container('openpass-build') {
sh 'bash repo/utils/ci/scripts/25_check_inline_docu.sh' sh 'bash repo/utils/ci/scripts/pull_gtgen.sh'
sh 'bash repo/utils/ci/scripts/60_check_clang_format.sh'
sh 'bash repo/utils/ci/scripts/61_check_eol.sh'
sh 'bash repo/utils/ci/scripts/62_static_analysis.sh'
} }
} }
} }
stage('Linux: Build core and run end-to-end tests') { stage('Linux: Pull gecco') {
steps { steps {
container('openpass-build') { container('openpass-build') {
sh 'bash repo/utils/ci/scripts/build_core_and_e2e.sh' sh 'bash repo/utils/ci/scripts/pull_gecco.sh'
} }
} }
} }
stage('Linux: Build and run unit tests') { stage('Linux: Pull opTestrunner') {
steps {
container('openpass-build') {
sh 'bash repo/utils/ci/scripts/build_unittests.sh'
}
}
}
stage('Linux: Cleanup') {
steps { steps {
container('openpass-build') { container('openpass-build') {
sh 'bash repo/utils/ci/scripts/cleanup.sh' sh 'bash repo/utils/ci/scripts/pull_optestrunner.sh'
}
}
}
stage('Linux: Deploy') {
when {
anyOf {
tag pattern: "v.*", comparator: "REGEXP"
branch "develop"
}
}
steps {
container('jnlp') {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh 'bash repo/utils/ci/scripts/publish_artifacts.sh'
}
}
}
}
stage('Linux: Deploy Docs') {
steps {
container('openpass-build')
{
withCredentials([string(credentialsId: 'gitlab-api-token', variable: 'GITLAB_BOT_TOKEN')])
{
sh 'bash repo/utils/ci/scripts/auto_deploy_docu.sh'
}
}
}
}
}
post {
always {
archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false
junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml,repo/sim/tests/endToEndTests/pyOpenPASS/result_*.xml'
}
}
}
stage('Windows') {
agent {
node {
label 'windows10'
customWorkspace "opSimulation"
}
}
environment {
MSYSTEM = 'MINGW64'
CHERE_INVOKING = 'yes'
PYTHON_EXECUTABLE = 'C:/op/python/python.exe'
OP_BASE_DIR = '/w'
OP_REPO_DIR = '/w/repo'
OP_DEPS_DIR = '/w/deps'
CCACHE_DIR = '/w/ccache'
}
stages {
stage('Windows: Cleanup and prepare dependencies') {
steps {
bat 'subst W: %WORKSPACE%'
dir('W:/') {
bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/build_prepare.sh'
}
}
}
stage('Windows: Build core and run end-to-end tests') {
steps {
dir('W:/') {
bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/build_core_and_e2e.sh'
}
}
}
stage('Windows: Build and run unit tests') {
steps {
dir('W:/') {
bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/build_unittests.sh'
}
}
}
stage('Windows: Cleanup') {
steps {
dir('W:/') {
bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/cleanup.sh'
}
}
}
stage('Windows: Deploy') {
when {
anyOf {
tag pattern: "v.*", comparator: "REGEXP"
branch "develop"
}
}
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/publish_artifacts.sh'
} }
} }
} }
} }
post { post {
always { always {
bat 'subst W: /d'
archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false
junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml,repo/sim/tests/endToEndTests/pyOpenPASS/result_*.xml' junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml,repo/sim/tests/endToEndTests/pyOpenPASS/result_*.xml'
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment