Update 'Jenkinsfile'
This commit is contained in:
parent
72817223cf
commit
bb9e009562
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -7,10 +7,11 @@ remote.allowAnyHosts = true
|
||||
remote.agent = false
|
||||
remote.logLevel = 'INFO'
|
||||
|
||||
def build(text) {
|
||||
def build_test(text) {
|
||||
sh'''
|
||||
printenv
|
||||
echo $text
|
||||
echo "Hello ${params.text}"
|
||||
echo $WORKSPACE
|
||||
ls -al $WORKSPACE
|
||||
find /var/jenkins_home -name "Jenkinsfile"
|
||||
@ -40,7 +41,7 @@ pipeline{
|
||||
stage('Test')
|
||||
{
|
||||
steps {
|
||||
build "Hello world"
|
||||
build_test("world")
|
||||
}
|
||||
}
|
||||
stage('Remote SSH') {
|
||||
|
Loading…
Reference in New Issue
Block a user