An open API service indexing awesome lists of open source software.

https://github.com/hurricanemark/build-putty-with-jenkinsfile

Building c code with Jenkins Free-style project.
https://github.com/hurricanemark/build-putty-with-jenkinsfile

ad-hoc-build ci-server gnu-c jenkins makefile putty

Last synced: 7 months ago
JSON representation

Building c code with Jenkins Free-style project.

Awesome Lists containing this project

README

          

# Using c-code from source forge to demonstrate Jenkins pipeline and Free-style builds #
## Source:
This open source is originally from sourceforge.com

## Pre-requisites:
gnu-make, gcc
## Native build:
cd unix
./configure
make
make test
make install

## Jenkins scripts:
Jenkinsfile

## Note
'''
Alternatively, source repo can be on an ftp site or remote directory/URL.
In which case, it can be retrieved using curl command, or SSHAgent/SFTP plugins.
'''

### Example:
Using parameterized variables -- AUTH_REQUIRED bool; USERID, PASSWD, SOURCE_URL string.

#!/bin/bash
if test $AUTH_REQUIRED = 'true'; then
curl -u ${USERID}:${PASSWD} -O ${SOURCE_URL}
else
curl -Ol ${SOURCE_URL}
fi