Skip to content

arabhossain/go-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Commerce

Test project while learning GoLang

Jenkins pipeline

  pipeline {
    agent any
    tools {
        go '1.16.4'
    }
    stages {
        stage("Pull Latest Code"){
            steps{
                 echo 'LATEST CODE DOWNLOADING STARTED'
                 git branch: 'main', url: 'https://github.com/arabhossain/go-commerce.git'
            }
        }
        stage("Install Dependency") {
            steps {
                echo 'BUILD EXECUTION STARTED'
                sh 'go mod tidy'
            }
        }
        stage("Build") {
            steps {
                echo 'BUILD EXECUTION STARTED'
                sh 'go build main.go'
            }
        }
        stage("Test") {
            steps {
                echo 'TEST EXECUTION STARTED'
                sh 'go test -v ./tests/...'
            }
        }
        stage("Run") {
            steps {
                echo 'BUILD EXECUTION STARTED'
                sh 'nohup go run main.go 2>&1 &'
            }
        }
    }
}

About

Project to learning golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published