Skip to content

bc0071/go-on-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  1. Create a directory, "go-on-jenkins"
  $ take go-on-jenkins
  1. Create Jenkinsfile

  2. Create main.go

  3. Git initialize Create a repository 'go-on-jenkins' on GitHub

    echo "# go-on-jenkins" >> README.md
    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/bc0071/go-on-jenkins.git
    git push -u origin master
  1. Install "Go plugin" in Jenkins

  2. Cofigure Go as global tool

  Jenkins -> Manage Jenkins -> Global Tool Configuration
    Name: go-1.12
    [x] Install automatically
    Install from golang.org
    version: Go 1.12
  1. Enhance Jenkinsfile

  2. Add/Commit/Push

  $ git add .
  $ git commit -m "go-on-jenkins 1st commit"
  $ git remote add origin https://github.com/bc0071/go-on-jenkins.git
  $ git push -u origin master

About

Jenkins simple pipeline for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages