Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

cloukit/library-deploy-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

‼️ DEPRECATED AND ARCHIVED

library-deploy-chain

Common code to deploy cloukit modules to npm and github releases


 

Usage

Put this into each pipeline Jenkins Job to trigger a dockerized build inside Jenkins.

node {
  wrap([$class: 'HideSecretEnvVarsBuildWrapper']) {
      if (env.GWBT_BRANCH == 'gh-pages') {
        echo "NOT BUILDING GH-PAGES BRANCH"
      } else if (env.GWBT_REPO_FULL_NAME) {
        // ALWAYS LOAD JENKINSFILE FROM MASTER !!! TO AVOID INJECTS BY PULL REQUESTS !!!
        sh 'curl -H "Authorization: token ${SECRET_GITHUB_AUTH_TOKEN}" -H "Accept: application/vnd.github.v3.raw" -o Jenkinsfile -L https://api.github.com/repos/cloukit/library-deploy-chain/contents/Jenkinsfile'
        load('./Jenkinsfile')
      } else {
        echo "manual starts not allowed!"
      }
  }
}
  • Master Branch pushes will be deployed to Nexus as alpha versions e.g. 1.1.0-alpha.6
  • Tag pushes will be deployed to npmjs as release versions e.g. 1.1.0

 

License

MIT © Bernhard Grünewaldt

About

Common code to deploy cloukit modules to npm and github releases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published