Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Jenkinsfile 1.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  1. pipeline {
  2. agent any
  3. options {
  4. skipDefaultCheckout(true)
  5. // Keep the 10 most recent builds
  6. buildDiscarder(logRotator(numToKeepStr: '10'))
  7. timestamps()
  8. }
  9. environment {
  10. PATH="/var/lib/jenkins/miniconda3/bin:$PATH"
  11. }
  12. stages {
  13. stage('Code pull') {
  14. steps {
  15. checkout scm
  16. }
  17. }
  18. stage('Build for csv_dl_archiving') {
  19. when {
  20. branch 'csv_dl_archiving'
  21. }
  22. steps {
  23. echo 'Build venv for csv_dl_archiving'
  24. sh ''' python --version
  25. conda create --yes -n ${BUILD_TAG} python
  26. source activate ${BUILD_TAG}
  27. cp -r /home/justin/projects/lendingclub/user_creds .
  28. pip install -r requirements.txt
  29. cd scripts/csv_dl_archiving
  30. python -u download_and_check_csvs.py
  31. '''
  32. // python test_mkdirs.py
  33. }
  34. }
  35. }
  36. post {
  37. always {
  38. sh 'conda remove --yes -n ${BUILD_TAG} --all'
  39. }
  40. }
  41. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...