Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
f689b293
Unverified
Commit
f689b293
authored
Oct 17, 2018
by
Robert Knight
Committed by
GitHub
Oct 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #789 from hypothesis/fix-missing-block-warning
Wrap "stage" contents in a block in Jenkinsfile
parents
d0bb1615
8d46c138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
Jenkinsfile
Jenkinsfile
+27
-24
No files found.
Jenkinsfile
View file @
f689b293
...
...
@@ -10,37 +10,40 @@ node {
returnStdout:
true
).
trim
()
stage
'Build'
nodeEnv
.
inside
(
"-e HOME=${workspace}"
)
{
sh
"echo Building Hypothesis client \"${pkgVersion}\""
sh
'make clean'
sh
'make'
stage
(
'Build'
)
{
nodeEnv
.
inside
(
"-e HOME=${workspace}"
)
{
sh
"echo Building Hypothesis client \"${pkgVersion}\""
sh
'make clean'
sh
'make'
}
}
stage
'Test'
nodeEnv
.
inside
(
"-e HOME=${workspace}"
)
{
sh
'make test'
stage
(
'Test'
)
{
nodeEnv
.
inside
(
"-e HOME=${workspace}"
)
{
sh
'make test'
}
}
if
(
isTag
())
{
stage
'Publish'
nodeEnv
.
inside
(
"-e HOME=${workspace}"
)
{
withCredentials
([
[
$class
:
'StringBinding'
,
credentialsId:
'npm-token'
,
variable:
'NPM_TOKEN'
]])
{
// Use `npm` rather than `yarn` for publishing.
// See https://github.com/yarnpkg/yarn/pull/3391.
sh
"echo '//registry.npmjs.org/:_authToken=${env.NPM_TOKEN}' >> \$HOME/.npmrc"
sh
"npm publish"
stage
(
'Publish'
)
{
nodeEnv
.
inside
(
"-e HOME=${workspace}"
)
{
withCredentials
([
[
$class
:
'StringBinding'
,
credentialsId:
'npm-token'
,
variable:
'NPM_TOKEN'
]])
{
// Use `npm` rather than `yarn` for publishing.
// See https://github.com/yarnpkg/yarn/pull/3391.
sh
"echo '//registry.npmjs.org/:_authToken=${env.NPM_TOKEN}' >> \$HOME/.npmrc"
sh
"npm publish"
}
}
}
// Upload the contents of the package to an S3 bucket, which it
// will then be served from.
docker
.
image
(
'nickstenning/s3-npm-publish'
)
.
withRun
(
''
,
"hypothesis@${pkgVersion} s3://cdn.hypothes.is"
)
{
c
->
sh
"docker logs --follow ${c.id}"
}
// Upload the contents of the package to an S3 bucket, which it
// will then be served from.
docker
.
image
(
'nickstenning/s3-npm-publish'
)
.
withRun
(
''
,
"hypothesis@${pkgVersion} s3://cdn.hypothes.is"
)
{
c
->
sh
"docker logs --follow ${c.id}"
}
}
}
}
...
...
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