forked from Blazemeter/blazemeter-teamcity-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
42 lines (39 loc) · 1.17 KB
/
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
pipeline {
agent {
docker {
registryUrl 'https://us-docker.pkg.dev'
image 'verdant-bulwark-278/bzm-plugin-base-image/bzm-plugin-base-image:latest'
registryCredentialsId 'push-to-gar-enc'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock -v $WORKSPACE:/build'
}
}
options {
buildDiscarder(logRotator(numToKeepStr: "10"))
ansiColor('xterm')
timestamps()
disableConcurrentBuilds()
}
environment {
JETBRAIN-TOKEN = credentials('blazerunner_jetbrains_token')
}
stages {
stage('Build Release') {
steps {
script {
sh'''
mvn clean install
'''
}
}
}
stage('Publish Release') {
steps {
script {
sh"""
curl -i --header "Authorization: Bearer ${JETBRAIN-TOKEN}" -F pluginId=BlazeMeter -F file=@target/BlazeMeter.zip -F channel=Stable https://plugins.jetbrains.com/plugin/uploadPlugin
"""
}
}
}
}
}