Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
adding Jenkins pipeline script
  • Loading branch information
leavesntwigs authored Aug 16, 2018
1 parent da39d7c commit 97456a6
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,49 @@
# lrose-test
automatic integration, build and test of lrose code



```
pipeline {
agent {
//docker { image 'nsflrose/lrose-blaze:latest' }
//docker { image 'centos-source:Dockerfile' }
docker { image 'centos-jenkins-base:latest' }
}
environment {
LD_LIBRARY_PATH = '/usr/local/lrose/lib'
// setting the PATH doesn't seem to work
PATH = "/usr/local/lrose/bin:$PATH"
}
stages {
stage('Fetch and Build') {
steps {
sh 'cd /tmp/bj; tar xvfz lrose-blaze-20180516.src.tgz'
// The distribution will be unpacked into a subdirectory:
sh '/tmp/bj/lrose-blaze-20180516.src/build/checkout_and_build_auto.py --package lrose-blaze --prefix /usr/local/lrose --clean'
//sh '/tmp/bj/lrose-blaze-20180516.src/build/checkout_and_build_auto.py --package lrose-blaze --clean'
}
}
stage('Test') {
steps {
sh 'ls -lrt /usr/local/lrose/bin'
sh 'ls -lrt /usr/local/lrose/lib'
sh '/usr/local/lrose/bin/RadxPrint -h'
}
}
stage('Test2') {
steps {
sh '/usr/local/lrose/bin/RadxConvert -h'
}
}
}
}
```

0 comments on commit 97456a6

Please sign in to comment.