This repository has been archived by the owner on Feb 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathci.nightly.Jenkinsfile
56 lines (48 loc) · 1.81 KB
/
ci.nightly.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
def VERSION_NAME
def helpers
def tagExists = false
node("master") {
VERSION_NAME = sh(returnStdout: true, script: 'date +%Y-%m-%d').trim()
checkout scm
tagExists = sh(returnStdout: true, script: 'git tag --points-at HEAD').trim().length() > 0
if (!tagExists) {
helpers = load "ci/build-helpers.groovy"
sh "git tag $VERSION_NAME || true"
withCredentials([
usernamePassword(
credentialsId: 'd60e38ae-4a5a-4eeb-ab64-32fd1fad4a28',
passwordVariable: 'GITHUB_TOKEN',
usernameVariable: 'GITHUB_USERNAME'
)
]) {
sh "git push https://[email protected]/ghostery/user-agent-desktop.git $VERSION_NAME"
}
}
}
if (!tagExists) {
node("docker") {
helpers.withGithubRelease() {
sh """
github-release release \
--user ghostery \
--repo user-agent-desktop \
--tag $VERSION_NAME \
--name $VERSION_NAME \
--pre-release
"""
}
}
build job: 'user-agent/desktop/main', parameters: [
booleanParam(name: 'Reset', value: true),
booleanParam(name: 'Clobber', value: false),
string(name: 'ReleaseName', value: VERSION_NAME),
booleanParam(name: 'Linux64', value: true),
booleanParam(name: 'Windows64', value: true),
booleanParam(name: 'MacOSX64', value: true),
booleanParam(name: 'MacOSARM', value: true),
booleanParam(name: 'WindowsARM', value: true),
booleanParam(name: 'Nightly', value: true),
booleanParam(name: 'PGO', value: true),
string(name: 'Locales', value: 'de,fr'), //,es-ES,hu,it,ja,ko,nl,pl,pt-BR,ru,zh-CN,zh-TW'),
], propagate: false, wait: false
}