Skip to content

antweiss/cf-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-plugin-example

Codefresh Plugin Example

Description:

This is an example plugin for use in Codefresh freestyle steps.

The plugin expects one environment variable as input: PLUGIN_RESULT.

If PLUGIN_RESULT is set to SUCCESS - the plugin will return a success return code.

If PLUGIN_RESULT is set to anything else - plugin will fail.

This sample plugin is also using Codefresh built-in variable CF_ACCOUNT to output the name of the Codefresh account that the calling pipeline belongs to.

Look here for the list of available variables: https://codefresh.io/docs/docs/codefresh-yaml/variables/

Example of usage:

version: '1.0'
steps:
  use_plugin:
    image: codefresh/plugin-example
    working_directory: ${{main_clone}}
    description: Example plugin
    environment:
      - PLUGIN_RESULT=SUCCESS

About

Examples of Codefresh step plugin implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published