mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-22 05:27:25 +00:00
update jenkinsfile
This commit is contained in:
parent
53ffe927f3
commit
a91dcc6b7c
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -3,14 +3,14 @@ properties([
|
|||||||
gitParameter(
|
gitParameter(
|
||||||
branch: '',
|
branch: '',
|
||||||
branchFilter: 'origin/(.*)',
|
branchFilter: 'origin/(.*)',
|
||||||
defaultValue: 'origin/refactor',
|
defaultValue: 'origin/main',
|
||||||
description: '',
|
description: '',
|
||||||
name: 'BRANCH',
|
name: 'BRANCH',
|
||||||
quickFilterEnabled: false,
|
quickFilterEnabled: false,
|
||||||
selectedValue: 'NONE',
|
selectedValue: 'DEFAULT',
|
||||||
sortMode: 'NONE',
|
sortMode: 'NONE',
|
||||||
tagFilter: '*',
|
tagFilter: '*',
|
||||||
useRepository: 'git@github.com:aronwk-aaron/AccountManager.git',
|
useRepository: 'git@github.com:DarkflameUniverse/NexusDashboard.git',
|
||||||
type: 'PT_BRANCH'
|
type: 'PT_BRANCH'
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
@ -25,15 +25,14 @@ node('worker'){
|
|||||||
userRemoteConfigs: [
|
userRemoteConfigs: [
|
||||||
[
|
[
|
||||||
credentialsId: 'aronwk',
|
credentialsId: 'aronwk',
|
||||||
url: 'git@github.com:aronwk-aaron/AccountManager.git'
|
url: 'git@github.com:DarkflameUniverse/NexusDashboard.git'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
def tag = ''
|
def tag = ''
|
||||||
stage("Build Container"){
|
stage("Build Container"){
|
||||||
|
if (params.BRANCH.contains('main')){
|
||||||
if (params.BRANCH.contains('master')){
|
|
||||||
tag = 'latest'
|
tag = 'latest'
|
||||||
} else {
|
} else {
|
||||||
tag = params.BRANCH.replace('\\', '-')
|
tag = params.BRANCH.replace('\\', '-')
|
||||||
|
Loading…
Reference in New Issue
Block a user