-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathJenkinsfile
23 lines (23 loc) · 884 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pipeline {
options {
skipDefaultCheckout()
}
environment {
HTTP_RESPONSE = httpRequest httpMode: 'GET',
consoleLogResponseBody: false,
validResponseContent: 'https://github.com/MarkEWaite',
quiet: true,
authentication: 'invalid-user-and-password',
url: 'https://api.github.com/users/MarkEWaite'
URL_SUFFIX = 'manage/credentials/store/system/domain/_/credential/invalid-user-and-password/'
}
agent none
stages {
stage('Track credentials') {
steps {
echo 'http response is ' + HTTP_RESPONSE
echo 'Open ' + JENKINS_URL + URL_SUFFIX + ' to see credential is used by the job'
}
}
}
}