forked from opensearch-project/opensearch-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateGithubIssueExisting_Jenkinsfile.txt
13 lines (13 loc) · 1.44 KB
/
CreateGithubIssueExisting_Jenkinsfile.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
CreateGithubIssueExisting_Jenkinsfile.run()
CreateGithubIssueExisting_Jenkinsfile.pipeline(groovy.lang.Closure)
CreateGithubIssueExisting_Jenkinsfile.echo(Executing on agent [label:none])
CreateGithubIssueExisting_Jenkinsfile.stage(notify, groovy.lang.Closure)
CreateGithubIssueExisting_Jenkinsfile.script(groovy.lang.Closure)
CreateGithubIssueExisting_Jenkinsfile.createGithubIssue({message=[Error building OpenSearch, retry with: ./build.sh manifests/2.2.0/opensearch-2.2.0.yml --component OpenSearch --snapshot]})
createGithubIssue.readYaml({file=manifests/2.0.0/opensearch-2.0.0.yml})
createGithubIssue.usernamePassword({credentialsId=jenkins-github-bot-token, passwordVariable=GITHUB_TOKEN, usernameVariable=GITHUB_USER})
createGithubIssue.withCredentials([[GITHUB_USER, GITHUB_TOKEN]], groovy.lang.Closure)
createGithubIssue.sh({script=gh issue list --repo https://github.com/opensearch-project/OpenSearch.git -S "[AUTOCUT] OS Distribution Build Failed for OpenSearch-2.0.0 in:title" --label autocut, returnStdout=true})
createGithubIssue.sh({script=gh label list --repo https://github.com/opensearch-project/OpenSearch.git -S v2.0.0, returnStdout=true})
createGithubIssue.println(Issue already exists in the repository, skipping.)
createGithubIssue.sleep({time=3, unit=SECONDS})