Skip to content

Commit

Permalink
Merge pull request #583 from halkeye/fix-jenkinsfile
Browse files Browse the repository at this point in the history
Build with Algolia, not deploy with algolia
  • Loading branch information
halkeye authored Feb 23, 2021
2 parents 7ac69c0 + e6d6071 commit 23e33d0
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions Jenkinsfile_k8s
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,29 @@ spec:
}
}

stage('Build PR') {
when {
not {
branch "master"
}
}
steps {
container('node') {
sh 'npm run build'
}
}
}

stage('Build Production') {
when {
branch "master"
}
environment {
GATSBY_SENTRY_DSN = "https://495b0bd32a5e4a2287c3fe4b061ee24f@sentry.io/1882460"
GATSBY_ALGOLIA_APP_ID = credentials('algolia-plugins-app-id')
GATSBY_ALGOLIA_SEARCH_KEY = credentials('algolia-plugins-search-key')
GATSBY_ALGOLIA_WRITE_KEY = credentials('algolia-plugins-write-key')
}
steps {
container('node') {
sh 'npm run build'
Expand Down Expand Up @@ -98,11 +120,7 @@ spec:
branch "master"
}
environment {
GATSBY_SENTRY_DSN = "https://495b0bd32a5e4a2287c3fe4b061ee24f@sentry.io/1882460"
PLUGINSITE_STORAGEACCOUNTKEY = credentials('PLUGINSITE_STORAGEACCOUNTKEY')
GATSBY_ALGOLIA_APP_ID = credentials('algolia-plugins-app-id')
GATSBY_ALGOLIA_SEARCH_KEY = credentials('algolia-plugins-search-key')
GATSBY_ALGOLIA_WRITE_KEY = credentials('algolia-plugins-write-key')
}
steps {
container('blobxfer') {
Expand Down

0 comments on commit 23e33d0

Please sign in to comment.