forked from opensearch-project/opensearch-build-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadCustomScript_Jenkinsfile.txt
29 lines (27 loc) · 1.24 KB
/
LoadCustomScript_Jenkinsfile.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
LoadCustomScript_Jenkinsfile.run()
LoadCustomScript_Jenkinsfile.pipeline(groovy.lang.Closure)
LoadCustomScript_Jenkinsfile.echo(Executing on agent [label:none])
LoadCustomScript_Jenkinsfile.stage(load-script, groovy.lang.Closure)
LoadCustomScript_Jenkinsfile.script(groovy.lang.Closure)
LoadCustomScript_Jenkinsfile.loadCustomScript({scriptPath=test-scripts/hello-world.sh, scriptName=hello-world.sh})
loadCustomScript.libraryResource(test-scripts/hello-world.sh)
loadCustomScript.writeFile({file=hello-world.sh, text=#!/bin/bash
###### Information ############################################################################
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Name: hello-world.sh
# Language: Shell
#
# About: Script to be used by tests
#
# Usage: ./hello-world.sh
#
###############################################################################################
echo "Hello World"
})
loadCustomScript.sh(chmod a+x ./hello-world.sh)