Compare commits
2 Commits
v2023.03.3
...
v2023.03.3
Author | SHA1 | Date | |
---|---|---|---|
b56e563aa0 | |||
2c701ffc16 |
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -29,27 +29,38 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
steps {
|
currentEmissaryRelease = readFile('emissary_release.txt').trim()
|
||||||
currentEmissaryRelease = readFile('emissary_release.txt')
|
|
||||||
|
|
||||||
if (currentEmissaryRelease == params.emissaryRelease) {
|
if (currentEmissaryRelease == params.emissaryRelease) {
|
||||||
currentBuild.result = 'SUCCESS'
|
currentBuild.result = 'SUCCESS'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
withCredentials([
|
||||||
|
usernamePassword([
|
||||||
|
credentialsId: 'forge-jenkins',
|
||||||
|
usernameVariable: 'GIT_USERNAME',
|
||||||
|
passwordVariable: 'GIT_PASSWORD'
|
||||||
|
])
|
||||||
|
]) {
|
||||||
sh """
|
sh """
|
||||||
|
git config user.email "jenkins@cadoles.com"
|
||||||
|
git config user.name "Jenkins"
|
||||||
|
git config credential.https://forge.cadoles.com.username "\$GIT_USERNAME"
|
||||||
|
git config credential.https://forge.cadoles.com.helper '!f() { test "\$1" = get && echo "password=\$GIT_PASSWORD"; }; f'
|
||||||
|
|
||||||
echo '${params.emissaryRelease}' > emissary_release.txt
|
echo '${params.emissaryRelease}' > emissary_release.txt
|
||||||
git add emissary_release.txt
|
git add emissary_release.txt
|
||||||
git commit -m "feat: use emissary ${params.emissaryRelease}"
|
git commit -m "feat: use emissary ${params.emissaryRelease}"
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
git push
|
git push origin \$(git rev-parse HEAD):${env.GIT_BRANCH}
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build and release') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
|
2
Makefile
2
Makefile
@ -110,7 +110,7 @@ gitea-release: tools/gitea-release/bin/gitea-release.sh
|
|||||||
GITEA_RELEASE_COMMITISH_TARGET="$(GIT_VERSION)" \
|
GITEA_RELEASE_COMMITISH_TARGET="$(GIT_VERSION)" \
|
||||||
GITEA_RELEASE_IS_DRAFT="false" \
|
GITEA_RELEASE_IS_DRAFT="false" \
|
||||||
GITEA_RELEASE_BODY="" \
|
GITEA_RELEASE_BODY="" \
|
||||||
GITEA_RELEASE_ATTACHMENTS="$(shell find .gitea-release/* -type f)" \
|
GITEA_RELEASE_ATTACHMENTS="$$(find .gitea-release/* -type f)" \
|
||||||
tools/gitea-release/bin/gitea-release.sh
|
tools/gitea-release/bin/gitea-release.sh
|
||||||
|
|
||||||
.PHONY: download-emissary-release
|
.PHONY: download-emissary-release
|
||||||
|
@ -1 +1 @@
|
|||||||
v2023.3.29-e5b6c5e
|
v2023.3.31-5fc5f5f
|
||||||
|
Reference in New Issue
Block a user