I'm learning Jenkins, I want to save Jenkins pipeline result, and then visit the result by Jenkins REST API.
Can this be achieved?
For example:
pipeline {
agent any
stages {
stage("calculate 1+1") {
script{
def result = 0
result = 1+1
}
}
}
How should I save result
and then visit it? (I can use Jenkins
python package: Jenkins.get_build_info
)