Loading
Job to backup oxygen, 2019-06 and 2020-06 builds that were executed off master.
Loading...
Testing...
${
}
60
1
migration
5
2
*/master
JENKINS_URL
TOKEN_NAME
tracecompass-master-2019-06,tracecompass-incubator-2019-06,tracecompass-incubator-2020-06,tracecompass-master-2020-06
Jenkins please retry a build
.*\[skip\W+ci\].*
H/5 * * * *
SSH="ssh genie.tracecompass@projects-storage.eclipse.org" # Oxygen backup sourceDir=/home/data/httpd/download.eclipse.org/tracecompass/oxygen/master version=$(${SSH} ls $sourceDir/repository/features | grep org.eclipse.tracecompass.tmf_ | sed "s/org\.eclipse\.tracecompass\.tmf_//" | sed "s/\.jar//") destinationDir=/home/data/httpd/archive.eclipse.org/tracecompass/backup/backup-4.7/$version if [[ `${SSH} test -d $destinationDir && echo exists` ]] ; then echo "$destinationDir already exists" else ${SSH} "mkdir $destinationDir" ${SSH} "cp -r $sourceDir/r* $destinationDir" fi # 2019-06 backup sourceDir=/home/data/httpd/download.eclipse.org/tracecompass/2019-06/master version=$(${SSH} ls $sourceDir/repository/features | grep org.eclipse.tracecompass.tmf_ | sed "s/org\.eclipse\.tracecompass\.tmf_//" | sed "s/\.jar//") destinationDir=/home/data/httpd/archive.eclipse.org/tracecompass/backup/backup-4.12/$version if [[ `${SSH} test -d $destinationDir && echo exists` ]] ; then echo "$destinationDir already exists" else ${SSH} "mkdir -p $destinationDir" ${SSH} "cp -r $sourceDir/r* $destinationDir" fi # 2019-06 backup (incubator) sourceDir=/home/data/httpd/download.eclipse.org/tracecompass.incubator/2019-06/trace-server version=$(${SSH} ls $sourceDir/rcp-repository/plugins | grep org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core_.*.jar$ | sed "s/org\.eclipse\.tracecompass\.incubator\.trace\.server\.jersey\.rest\.core_//" | sed "s/\.jar//") destinationDir=/home/data/httpd/archive.eclipse.org/tracecompass.incubator/backup/backup-4.12/$version if [[ `${SSH} test -d $destinationDir && echo exists` ]] ; then echo "$destinationDir already exists" else ${SSH} "mkdir -p $destinationDir" ${SSH} "cp -r $sourceDir/r* $destinationDir" fi # 2020-06 backup sourceDir=/home/data/httpd/download.eclipse.org/tracecompass/2020-06/master version=$(${SSH} ls $sourceDir/repository/features | grep org.eclipse.tracecompass.tmf_ | sed "s/org\.eclipse\.tracecompass\.tmf_//" | sed "s/\.jar//") destinationDir=/home/data/httpd/archive.eclipse.org/tracecompass/backup/backup-4.16/$version if [[ `${SSH} test -d $destinationDir && echo exists` ]] ; then echo "$destinationDir already exists" else ${SSH} "mkdir -p $destinationDir" ${SSH} "cp -r $sourceDir/r* $destinationDir" fi # 2020-06 backup (incubator) sourceDir=/home/data/httpd/download.eclipse.org/tracecompass.incubator/2020-06/trace-server version=$(${SSH} ls $sourceDir/rcp-repository/plugins | grep org.eclipse.tracecompass.incubator.trace.server.jersey.rest.core_.*.jar$ | sed "s/org\.eclipse\.tracecompass\.incubator\.trace\.server\.jersey\.rest\.core_//" | sed "s/\.jar//") destinationDir=/home/data/httpd/archive.eclipse.org/tracecompass.incubator/backup/backup-4.16/$version if [[ `${SSH} test -d $destinationDir && echo exists` ]] ; then echo "$destinationDir already exists" else ${SSH} "mkdir -p $destinationDir" ${SSH} "cp -r $sourceDir/r* $destinationDir" fi #sourceDir=/home/data/httpd/download.eclipse.org/tracecompass.incubator/master #destinationDir=/home/data/httpd/download.eclipse.org/tracecompass.incubator/stable-7.0 #${SSH} "rm -rf $destinationDir" #if [[ `${SSH} test -d $destinationDir && echo exists` ]] ; then #echo "$destinationDir already exists" #else # ${SSH} "mkdir -p $destinationDir" # ${SSH} "cp -r $sourceDir/r* $destinationDir" #fi