Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
center-for-computational-genomics-and-data-science
public
COVID-19_risk_predictor
Commits
2f625bc5
Commit
2f625bc5
authored
Aug 12, 2021
by
Angelina Elizabeth Uno-Antonison
Browse files
Update Jenkinsfile to change the double to single quotes to prevent leaking secrets
parent
89e67f79
Pipeline
#4965
canceled with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
2f625bc5
...
...
@@ -18,10 +18,10 @@ pipeline {
}
post
{
success
{
sh
"
curl --request POST --header
\
"PRIVATE-TOKEN: ${GITLAB_API_TOKEN}
\
"
\
"https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=success&name=jenkins_static_analysis
\"
"
sh
'
curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=success&name=jenkins_static_analysis"
'
}
failure
{
sh
"
curl --request POST --header
\
"PRIVATE-TOKEN: ${GITLAB_API_TOKEN}
\
"
\
"https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=canceled&name=jenkins_static_analysis
\"
"
sh
'
curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=canceled&name=jenkins_static_analysis"
'
}
}
}
...
...
@@ -35,20 +35,20 @@ pipeline {
}
post
{
success
{
sh
"
curl --request POST --header
\
"PRIVATE-TOKEN: ${GITLAB_API_TOKEN}
\
"
\
"https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=success&name=jenkins_unit_tests
\"
"
sh
'
curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=success&name=jenkins_unit_tests"
'
}
failure
{
sh
"
curl --request POST --header
\
"PRIVATE-TOKEN: ${GITLAB_API_TOKEN}
\
"
\
"https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=canceled&name=jenkins_unit_tests
\"
"
sh
'
curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=canceled&name=jenkins_unit_tests"
'
}
}
}
}
post
{
success
{
sh
"
curl --request POST --header
\
"PRIVATE-TOKEN: ${GITLAB_API_TOKEN}
\
"
\
"https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=success&name=jenkins
\"
"
sh
'
curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=success&name=jenkins"
'
}
failure
{
sh
"
curl --request POST --header
\
"PRIVATE-TOKEN: ${GITLAB_API_TOKEN}
\
"
\
"https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=canceled&name=jenkins
\"
"
sh
'
curl --request POST --header "PRIVATE-TOKEN: ${GITLAB_API_TOKEN}" "https://gitlab.rc.uab.edu/api/v4/projects/1585/statuses/${GIT_COMMIT}?state=canceled&name=jenkins"
'
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment