sab
sab

Reputation: 5022

url of the workspace from a jenkins-pipeline, in the pipeline

I configure my jenkinsPipeline with a jenkinsFile. It generate log

I want to print the url of a file build in the workspace during the job. Not the path in the machine, the url.

How can I have the url of the current workspace, dynamically in my jenkinsFile?

Upvotes: 3

Views: 1607

Answers (1)

Anudeep
Anudeep

Reputation: 21

Try using env variable BUILD_URL in JenkinsFile

Upvotes: 1

Related Questions