Compare commits
2 Commits
v2023.4.5-
...
v2023.4.6-
Author | SHA1 | Date | |
---|---|---|---|
7ee4344adc | |||
06b1235707 |
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -51,6 +51,9 @@ pipeline {
|
|||||||
sh 'make gitea-release'
|
sh 'make gitea-release'
|
||||||
}
|
}
|
||||||
def currentVersion = sh(returnStdout: true, script: 'make full-version').trim()
|
def currentVersion = sh(returnStdout: true, script: 'make full-version').trim()
|
||||||
|
if (currentVersion.endsWith('-dirty')) {
|
||||||
|
unstable('Could not trigger emissary-firmware build, dirty version !')
|
||||||
|
} else {
|
||||||
build(
|
build(
|
||||||
job: "../emissary-firmware/${env.GIT_BRANCH}",
|
job: "../emissary-firmware/${env.GIT_BRANCH}",
|
||||||
parameters: [
|
parameters: [
|
||||||
@ -61,6 +64,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
@ -202,10 +202,7 @@ func unexpectedHostRedirect(hostTarget string, acceptedHostPatterns ...string) f
|
|||||||
fn := func(w http.ResponseWriter, r *http.Request) {
|
fn := func(w http.ResponseWriter, r *http.Request) {
|
||||||
host, port, err := net.SplitHostPort(r.Host)
|
host, port, err := net.SplitHostPort(r.Host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error(r.Context(), "could not split host/port", logger.E(errors.WithStack(err)))
|
host = r.Host
|
||||||
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
matched := wildcard.MatchAny(host, acceptedHostPatterns...)
|
matched := wildcard.MatchAny(host, acceptedHostPatterns...)
|
||||||
|
Reference in New Issue
Block a user