-
Notifications
You must be signed in to change notification settings - Fork 87
/
Jenkinsfile
40 lines (38 loc) · 1.6 KB
/
Jenkinsfile
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
@Library('jenkins-library') _
if (env.BRANCH_NAME == "master" || env.BRANCH_NAME == "develop") {
buildEnvironment = ['VUE_CLI_KEEP_TEST_ATTRS': true]
} else {
buildEnvironment = [:]
}
def pipeline = new org.js.AppPipeline(steps: this,
dockerImageName: 'polkaswap/exchange-web',
buildDockerImage: 'build-tools/node:20.18-alpine',
dockerRegistryCred: 'bot-polkaswap-rw',
buildEnvironment: buildEnvironment,
sonarProjectName: 'polkaswap-exchange-web',
sonarProjectKey: 'jp.co.soramitsu:polkaswap-exchange-web',
secretScannerExclusion: 'Jenkinsfile-UCAN|.*env.json',
fleekDeployProd: true,
fleekBranchesProd: ['fleek', 'fleek-pre'],
copyFileProd: 'env.json',
fleekDefaultSiteNameProd: 'long-firefly-8047',
ipfsHashNotificationProd: true,
ipfsHashChatIDProd: '-1001375555544',
k8sPrDeploy: true,
vaultPrPath: "argocd-cc/src/charts/sora2/polkaswap-exchange-web/environments/tachi/",
vaultUser: "polkaswap-rw",
vaultCredId: "pswapVaultCreds",
valuesDestPath: "argocd-cc/src/charts/sora2/polkaswap-exchange-web/",
devValuesPath: "dev/dev/dev/",
initialSecretName: "sora2-dev-polkaswap-exchange-polkaswap-exchange-web-eso-base",
initialNameSpace: "sora2-dev-web",
targetNameSpace: "sora2-${env.CHANGE_ID}-web",
targetSecretName: "sora2-${env.CHANGE_ID}-polkaswap-exchange-pr-polkaswap-exchange-web-eso-base",
downstreamJob: 'polkaswap/e2e-tests/hash_test',
noIndex: true,
sonarSrcPath: 'src',
sonarTestsPath: 'tests',
dojoProductType: 'polkaswap',
movingFiles: [ "*":"./", ".well-known/":"./"]
)
pipeline.runPipeline()