mariia
mariia

Reputation: 137

How to save consoleText after running jenkins job

In Execute Shell I used command wget http://jenkins:8080/job/Jenkins_name_job/${BUILD_ID}/consoleText

I want to use Archive the artifacts. But can't understand how. In Post-build Actions / Archive the artifacts I wrote ${Build_ID}/logs/* . But got the error: ERROR: No artifacts found that match the file pattern "184/logs/*". Configuration error?

Upvotes: 2

Views: 191

Answers (2)

mariia
mariia

Reputation: 137

Should be: wget http://jenkins:8080/job/Jenkins_name_job/${BUILD_ID}/consoleText

In Post-build Actions / Archive the artifacts I wrote ${Build_ID}/**

Upvotes: 1

xiurobert
xiurobert

Reputation: 164

Actually to archive the artifacts it should be ${Build_ID}/logs/*.(log file type like log)

References: My own Jenkins

Upvotes: 0

Related Questions