Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into handle_encryption_key
  • Loading branch information
EyalDelarea committed Nov 19, 2024
2 parents fe4e32e + 0e782d7 commit 4717505
Show file tree
Hide file tree
Showing 6 changed files with 234 additions and 172 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- [Setting the build name and build number](#setting-the-build-name-and-the-build-number)
- [Using multiple JFrog Platform instances](#using-multiple-jfrog-platform-instances)
- [Publishing and accessing the build-info](#publishing-and-accessing-the-build-info)
- [Capturing the output of JFrog CLI commands](#capturing-the-output-of-jfrog-cli-commands)
- [Using HTTP/s proxy](#using-https-proxy)
- [Jenkins Configuration as Code](#jenkins-configuration-as-code)
- [Examples](#examples)
Expand Down Expand Up @@ -180,6 +181,28 @@ stage('Publish build info') {
When the job publishes the build-info to Artifactory, you can access it by clicking on the build-info icon, next to the
job run.

### Capturing the output of JFrog CLI commands

The JFrog CLI commands output is returned as a string.
To capture the output of JFrog CLI commands, wrap the JFrog CLI command in a `script` block:

```groovy
script {
String version = jf '-v'
echo "JFrog CLI version output: $version"
}
```

<details>
<summary>Scripted Pipeline</summary>

```groovy
String version = jf '-v'
echo "JFrog CLI version output: $version"
```

</details>

![build-info.png](images/readme/build-info.png)

## Using HTTP/S proxy
Expand Down
Loading

0 comments on commit 4717505

Please sign in to comment.