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.1 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
  1. pipeline {
  2. agent any
  3. stages {
  4. stage('Trigger google cloud build') {
  5. when { branch 'main' }
  6. steps {
  7. googleCloudBuild credentialsId: 'project-talos', request: file('gcloudbuild.yaml')
  8. }
  9. }
  10. stage('Make docs') {
  11. when { not { branch 'main' } }
  12. steps {
  13. sh '''
  14. #!/bin/bash
  15. WORKING_DIR="$JENKINS_PATH_ON_HOST/workspace/$(basename $WORKSPACE)" . make-docs.sh
  16. '''
  17. }
  18. }
  19. stage('Cache busting') {
  20. when {
  21. branch 'main'
  22. anyOf {
  23. changeset 'build/'
  24. expression { return currentBuild.number == 1 }
  25. }
  26. }
  27. steps {
  28. sh 'gcloud compute url-maps invalidate-cdn-cache $LOAD_BALANCER_NAME --path "/docs/*"'
  29. }
  30. }
  31. }
  32. post {
  33. always {
  34. discordSend title: currentBuild.fullDisplayName, link: currentBuild.absoluteUrl, result: currentBuild.currentResult, webhookURL: "${DISCORD_WEBHOOK}"
  35. }
  36. }
  37. }
Tip!

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

Comments

Loading...