Skip to content

Commit

Permalink
attempt to bypass a still not-fully-understood problem by hacking dns…
Browse files Browse the repository at this point in the history
… entries in the steps; for geneontology/pipeline#407
  • Loading branch information
kltm committed Nov 27, 2024
1 parent d575e5c commit 61f1bfc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,22 @@ pipeline {
image 'geneontology/golr-autoindex:28a693d28b37196d3f79acdea8c0406c9930c818_2022-03-17T171930_master'
// Reset Jenkins Docker agent default to original
// root.
args '--add-host host.docker.internal:host-gateway -u root:root --mount type=tmpfs,destination=/srv/solr/data'
args '-u root:root --mount type=tmpfs,destination=/srv/solr/data'
}
}
// CHECKPOINT: Recover key environmental variables.
environment {
START_DOW = sh(script: 'curl https://skyhook.geneontology.io/pipeline-from-goa/main/metadata/dow.txt', , returnStdout: true).trim()
START_DATE = sh(script: 'curl https://skyhook.geneontology.io/pipeline-from-goa/main/metadata/date.txt', , returnStdout: true).trim()
}

// // CHECKPOINT: Recover key environmental variables.
// environment {
// START_DOW = sh(script: 'curl https://skyhook.geneontology.io/pipeline-from-goa/main/metadata/dow.txt', , returnStdout: true).trim()
// START_DATE = sh(script: 'curl https://skyhook.geneontology.io/pipeline-from-goa/main/metadata/date.txt', , returnStdout: true).trim()
// }

steps {

// WARNING: MEGAHACK
sh 'echo \'nameserver 8.8.8.8\' > /etc/resolv.conf'
sh 'echo \'search lbl.gov\' >> /etc/resolv.conf'

// Build index into tmpfs.
sh 'bash /tmp/run-indexer.sh'

Expand Down

0 comments on commit 61f1bfc

Please sign in to comment.