Skip to content
Snippets Groups Projects

[SIGMON-630] jenkins integration removed

Merged Aleksandra Mnich requested to merge SIGMON-630_remove_jenkins_integration into dev
4 files
+ 0
256
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 0
39
@Library('mpe-pipeline-utils') _
pipeline {
agent {
dockerfile {
additionalBuildArgs '--build-arg API_BRANCH=\"$API_BRANCH\" --build-arg NB_BRANCH=\"$NB_BRANCH\" --build-arg ANALYSIS_BRANCH=\"$ANALYSIS_BRANCH\"'
args '--network host'
label 'agent_sigmon'
}
}
options {
disableConcurrentBuilds()
}
stages {
stage('Notebook run') {
steps {
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'sigmon_user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWD']]){
sh 'chmod +x ./CI/Jenkins/run_notebook.sh'
sh 'echo "$PASSWD" | kinit $USERNAME@CERN.CH'
sh """
#!/bin/bash
source /opt/acc-py/venvs/acc-py-venv/bin/activate
./CI/Jenkins/run_notebook.sh \"${params.notebook}\" \"${params.nb_type}\" \"${params.hwc_test}\" \"${params.circuit_name}\" \"${params.campaign}\" \"${params.t_start}\" \"${params.t_end}\" \"${params.timestamp_fgc}\" \"${params.discharge_level}\" \"${params.circuit_type}\" \"${params.initial_charge_check}\""""
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'output/*'
}
cleanup {
cleanWs()
}
}
}
Loading