Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .CI/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ pipeline {
IDA_EMAIL = credentials('IDA email')
}
steps {
sshagent (credentials: ['Hudson-SSH-Key']) {
createInitialHistoryFilesOnRemote()
}
sh 'rm -rf sqlite3.db *.html history'
sh '''
if ! test -d OpenModelica; then
Expand Down Expand Up @@ -448,6 +451,9 @@ pipeline {
IDA_EMAIL = credentials('IDA email')
}
steps {
sshagent (credentials: ['Hudson-SSH-Key']) {
createInitialHistoryFilesOnRemote()
}
sh 'rm -f sqlite3.db *.html'
sh '''
if ! test -d OpenModelica; then
Expand Down Expand Up @@ -570,6 +576,25 @@ def installLibraries(boolean removePackageOrder, boolean conversionScript, name,
}
}


def createInitialHistoryFilesOnRemote() {
sh """
HISTORY_DIRECTORY='/var/www/libraries.openmodelica.org/branches/history/'
SEPARATOR='/'
HISTORY_FILE='00_history.html'

for b in ${env.GITBRANCHES} ${env.GITBRANCHES_FMI} ${env.GITBRANCHES_NEWINST} ${env.GITBRANCHES_DAE} ${env.GITBRANCHES_CPP}; do
BRANCH=`echo ${b} | cut -d '/' -f2`
FILE="${HISTORY_DIRECTORY}${BRANCH}${SEPARATOR}${HISTORY_FILE}"
if [ ! -f ${FILE} ]; then
echo "Creating initial history: library.openmodelica.org:${FILE}"
ssh hudson@library.openmodelica.org mkdir -p ${HISTORY_DIRECTORY}${BRANCH}
ssh hudson@library.openmodelica.org touch ${FILE}
fi
done
"""
}

/**
* Launches the test.py script with the given options.
*
Expand Down