In pipeline jobs there are only steps. You can generate the Detect pipeline step as follows.
Navigate to Jenkins > New Item.
In the Enter an item name field, type the name for your new Pipeline project.
Scroll down and click Pipeline.
Click OK.
On the resulting page, click the Pipeline tab.
To help you generate Pipeline syntax, in the Pipeline section, click Pipeline Syntax to access the Pipeline Syntax page.
On the Pipeline Syntax page, click the Sample Step drop-down menu under Steps, and select blackduck_detect: Blackduck Detect
Add some Detect properties.
Click Generate Pipeline Script, and you will see a Pipeline Script statement that would call the step with that configuration. You may copy and paste the whole statement into your script, or pick up just the options you care about.
Optionally, select the Return status code checkbox to return a status code.
Optionally, select a Custom download strategy option.
Add a Pipeline script and click Save.
The following is a simple example of a basic script.
Run the build.
After completing the Jenkins Pipeline build with Detect, you can view the complete scan results in your Black Duck SCA instance.
Note: In Jenkins pipelines, there are no post-build actions because post-build actions are a Freestyle job concept.