Compare commits
2 Commits
v2023.4.5-
...
v2023.4.6-
Author | SHA1 | Date | |
---|---|---|---|
18eb2d30c5 | |||
06b1235707 |
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -51,12 +51,13 @@ pipeline {
|
||||
sh 'make gitea-release'
|
||||
}
|
||||
def currentVersion = sh(returnStdout: true, script: 'make full-version').trim()
|
||||
build(
|
||||
job: "../emissary-firmware/${env.GIT_BRANCH}",
|
||||
parameters: [
|
||||
[$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion]
|
||||
]
|
||||
)
|
||||
sh 'git status'
|
||||
// build(
|
||||
// job: "../emissary-firmware/${env.GIT_BRANCH}",
|
||||
// parameters: [
|
||||
// [$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion]
|
||||
// ]
|
||||
// )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -202,10 +202,7 @@ func unexpectedHostRedirect(hostTarget string, acceptedHostPatterns ...string) f
|
||||
fn := func(w http.ResponseWriter, r *http.Request) {
|
||||
host, port, err := net.SplitHostPort(r.Host)
|
||||
if err != nil {
|
||||
logger.Error(r.Context(), "could not split host/port", logger.E(errors.WithStack(err)))
|
||||
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
||||
|
||||
return
|
||||
host = r.Host
|
||||
}
|
||||
|
||||
matched := wildcard.MatchAny(host, acceptedHostPatterns...)
|
||||
|
Reference in New Issue
Block a user