Skip to main content
In this step-by-step tutorial, we’ll install and configure two essential Jenkins plugins—Copy Artifact and Yet Another Build Visualizer—to enable artifact sharing between freestyle jobs and to visualize your build pipelines.

Plugins Overview


1. Installing the Copy Artifact Plugin

We already have a job called ascii-build-job that fetches advice from an external API:
To allow another job to consume advice.json, install Copy Artifact:
  1. Navigate to Manage JenkinsManage Plugins.
  2. Click the Installed tab to check which plugins are already present:
  1. Go to the Available tab, search for “copy artifact”, select it, then click Install without restart:
  1. Wait until the status indicator reads Success:
  1. Review the plugin’s usage patterns, including declarative pipeline snippets and CLI installation:
Or install via CLI:
If you install via CLI, ensure Jenkins has been restarted or the plugin has been dynamically loaded. Always verify compatibility with your Jenkins version.

2. Configure the Build Job (ascii-build-job)

Edit ascii-build-job to fetch and archive advice:
  1. Execute Shell – Fetch advice and output to advice.json:
  2. Allow Copy Artifact – Under ConfigurePermission to Copy Artifact, add ascii-test-job:
  1. Archive Artifacts – Post-build action to archive advice.json:
Save and run ascii-build-job. You should see advice.json archived under Build Artifacts.

3. Configure the Test Job (ascii-test-job)

Now set up ascii-test-job to pull that artifact and validate its content:
  1. Copy Artifacts from Another Project (drag this step to the top):
    • Project Name: ascii-build-job
    • Which Build: Latest successful
    • Artifacts to Copy: advice.json
  1. Execute Shell – Validate the advice message length:
  2. Archive Artifacts – Only archive advice.message on success:
Save and run ascii-test-job. Verify both artifacts in the workspace:
Console output should confirm the artifact copy and message extraction:

4. Configure the Deploy Job (ascii-deploy-job)

Create ascii-deploy-job to consume advice.message and display it with cowsay:
  1. Copy Artifacts from ascii-test-job (Latest stable), artifacts: advice.message.
  2. Execute Shell:
  3. Build Trigger – Under Build Triggers, select Build after other projects are builtascii-test-job (stable only).
Save and kick off the chain by building ascii-build-job. You’ll observe:
  • ascii-build-job runs first and archives advice.json.
  • ascii-test-job copies that artifact, extracts advice.message, and archives it.
  • ascii-deploy-job triggers automatically and displays the advice in a random cow figure.
Console logs of ascii-deploy-job:

5. Visualizing the Build Flow

To graphically map upstream/downstream relationships, install Yet Another Build Visualizer:
  1. Download the latest HPI from the [releases page]:
  1. In Manage JenkinsManage PluginsAdvanced, upload and deploy the HPI:
  1. Open ascii-build-job to view the build flow diagram:
Use the interactive toggles to inspect build numbers, statuses, and full job names. This visualization helps you quickly understand and debug complex job chains.
That’s it! You’ve successfully installed and configured the Copy Artifact and Yet Another Build Visualizer plugins to streamline artifact sharing and gain clear insights into your Jenkins build pipelines.

Watch Video