Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins-shared-library-example
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Tehami
jenkins-shared-library-example
Commits
24a6b6a8
Commit
24a6b6a8
authored
Feb 11, 2020
by
Muhammad Tehami
💡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script removed
parent
c353d9bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Deployer.groovy
src/Deployer.groovy
+3
-2
disableBalancerUtils.groovy
vars/disableBalancerUtils.groovy
+2
-1
No files found.
src/Deployer.groovy
View file @
24a6b6a8
...
...
@@ -3,13 +3,14 @@ import org.apache.commons.lang3.StringUtils
class
Deployer
{
int
tries
=
0
Script
script
//
Script script
def
run
()
{
while
(
tries
<
10
)
{
// Thread.sleep(1000)
tries
++
script
.
echo
(
"tries is numeric: "
+
StringUtils
.
isAlphanumeric
(
""
+
tries
))
// script.echo("tries is numeric: " + StringUtils.isAlphanumeric("" + tries))
echo
(
"tries is numeric: "
+
StringUtils
.
isAlphanumeric
(
""
+
tries
))
}
}
}
vars/disableBalancerUtils.groovy
View file @
24a6b6a8
...
...
@@ -3,7 +3,8 @@
def
call
(
body
)
{
echo
"Disable balancer"
script:
this
.
echo
(
new
Sample
(
1
,
3
).
toString
())
// script:this.echo(new Sample(1, 3).toString())
echo
(
new
Sample
(
1
,
3
).
toString
())
return
this
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment