forked from amfeng/phabricator-ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
28 lines (24 loc) · 790 Bytes
/
Jenkinsfile
File metadata and controls
28 lines (24 loc) · 790 Bytes
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
@Library('utils@master') _
def app
def status = 0
github_credentials = usernamePassword(credentialsId: '8d84cb87-b3cc-494d-8791-ff15230c51d5', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_API_TOKEN')
if (env.CHANGE_ID) { // if not PR
node('main-agent') {
ansiColor('xterm') {
stage('Clone repository') {
deleteDir() // Delete workspace directory for cleanup
checkout scm // Git plugin, checks out current commit of branch
try {
BRANCH_NAME = CHANGE_BRANCH
} catch (MissingProperyException) {
}
}
stage('SonarQube Analysis') {
sonarqube([
sonarScanner: "sonar",
projectKey: "Instabug_phabricator-ruby_AYtHdJ1W7vrPPoHUPcJs"
]);
}
}
}
}