0.2.1-alpha.0 • Published 7 years ago

pisco-git v0.2.1-alpha.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

#Recipes

NameVersionDescription
pisco-git0.0.1git wrapped-up commands
piscosour0.3.0Get all your devops tools wrapped-up!

#Commands

##clone: "clone git repository" clone git repository prepare to work with bamboo

command: pgit clone

The tool is prepared in order to be used on a bamboo environment but also is possible to use it outside.

  • Read environment variables from bamboo:

    1. git username => "bamboo_git_user"
    2. git password => "bamboo_CELLS_BOT_PASSWORD"
    3. git repository url => "bamboo_planRepository_repositoryUrl"
    4. workspace => "bamboo_workspace_dir"

  • Variables using options in command line

    1. --username
    2. --password
    3. --repository
    4. --workspace

Otherwise ask for this information to the user

###1. netrc: "Check if .netrc is present"

Repository types:  all
Recipes: pisco-git (0.0.1)

Generate .netrc file, use to git credentials cache.

In parameters

  • username: git username (use bamboo_git_user from env variables)
  • password: git password (use bamboo_CELLS_BOT_PASSWORD from env variables)

###2. clone: "Clone one repository using bamboo env variables"

Repository types:  all
Recipes: pisco-git (0.0.1)

Clone one repository of git in the workspace directory. Use this shot for bamboo purposes.

In parameters

  • repository: http or ssh url of git repository (use 'bamboo_planRepository_repositoryUrl' from env variables)
  • workspace: workspace where everything is clone (by default is './' but is possible to set using 'bamboo_workspace_dir' env variable or with --workspace ../dir command option)

#Plugins

There is no plugin for this recipe