Skip to content

Commit

Permalink
Add --plugin-download-directory to docker example (#618)
Browse files Browse the repository at this point in the history
* Add --plugin-download-directory to docker example

* Changes updated
  • Loading branch information
aSky17 committed Nov 30, 2023
1 parent f426b83 commit 3a6bbb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ java -jar plugin-management-cli/target/jenkins-plugin-manager-*.jar --war /file/
If you use a [Jenkins docker image](https://hub.docker.com/r/jenkins/jenkins) the plugin manager can be invoked inside the running container via the bundled `jenkins-plugin-cli` shell script:

```bash
docker cp /your/path/to/plugins.txt <container_name>:/tmp/plugins.txt
docker exec -it <container_name> /bin/bash
jenkins-plugin-cli --plugin-file /your/path/to/plugins.txt --plugins delivery-pipeline-plugin:1.3.2 deployit-plugin
jenkins-plugin-cli --plugin-file /tmp/plugins.txt --plugins delivery-pipeline-plugin:1.3.2 deployit-plugin
cp -r -p /usr/share/jenkins/ref/plugins/. /var/jenkins_home/plugins/.
exit
```

## CLI Options
Expand Down

0 comments on commit 3a6bbb7

Please sign in to comment.